Skip to content

Commit

Permalink
Reduce log level of config file being used
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed May 3, 2020
1 parent cc1205c commit 4b70cc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conf/configuration.go
Expand Up @@ -56,10 +56,10 @@ func configFile() string {
if err := d.Load(conf); err != nil {
return consts.LocalConfigFile
}
if _, err := os.Stat(conf.ConfigFile); err == nil {
return conf.ConfigFile
if _, err := os.Stat(conf.ConfigFile); err != nil {
return consts.LocalConfigFile
}
return consts.LocalConfigFile
return conf.ConfigFile
}

func newWithPath(path string, skipFlags ...bool) *multiconfig.DefaultLoader {
Expand Down Expand Up @@ -115,7 +115,7 @@ func LoadFromFile(confFile string, skipFlags ...bool) {
}
log.SetLevelString(Server.LogLevel)
log.SetLogSourceLine(Server.DevLogSourceLine)
log.Trace("Loaded configuration", "file", confFile, "config", fmt.Sprintf("%#v", Server))
log.Debug("Loaded configuration", "file", confFile, "config", fmt.Sprintf("%#v", Server))
}

func Load() {
Expand Down

0 comments on commit 4b70cc5

Please sign in to comment.