Skip to content

Commit

Permalink
enable validation checker in hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
issmirnov committed Jul 31, 2018
1 parent c13a473 commit eea7c22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ func makeCallback(c *context, configName string) func() {
return func() {
data, err := parseYaml(configName)
if err != nil {
log.Printf("Error in new config: %s. Fallback to old config.", err)
log.Printf("Error loading new config: %s. Fallback to old config.", err)
return
}
err = validateConfig(data)
if err != nil {
log.Printf("Error validating new config: %s. Fallback to old config.", err)
return
}

Expand Down

0 comments on commit eea7c22

Please sign in to comment.