Skip to content

Commit

Permalink
Validate logs before SetLevel
Browse files Browse the repository at this point in the history
A default log level of confd/log will be Info.
So log level before SetLevel should be Info or above.
  • Loading branch information
fkakuma committed Jun 26, 2017
1 parent 402c52f commit 706142e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ func initConfig() error {
}
// Update config from the TOML configuration file.
if configFile == "" {
log.Debug("Skipping confd config file.")
log.Info("Skipping confd config file.")
} else {
log.Debug("Loading " + configFile)
log.Info("Loading " + configFile)
configBytes, err := ioutil.ReadFile(configFile)
if err != nil {
return err
Expand Down

0 comments on commit 706142e

Please sign in to comment.