Reduce log level of config file being used

This commit is contained in:
Deluan 2020-05-03 14:09:31 -04:00
parent cc1205c79d
commit 4b70cc52d6

View file

@ -56,10 +56,10 @@ func configFile() string {
if err := d.Load(conf); err != nil { if err := d.Load(conf); err != nil {
return consts.LocalConfigFile return consts.LocalConfigFile
} }
if _, err := os.Stat(conf.ConfigFile); err == nil { if _, err := os.Stat(conf.ConfigFile); err != nil {
return conf.ConfigFile return consts.LocalConfigFile
} }
return consts.LocalConfigFile return conf.ConfigFile
} }
func newWithPath(path string, skipFlags ...bool) *multiconfig.DefaultLoader { func newWithPath(path string, skipFlags ...bool) *multiconfig.DefaultLoader {
@ -115,7 +115,7 @@ func LoadFromFile(confFile string, skipFlags ...bool) {
} }
log.SetLevelString(Server.LogLevel) log.SetLevelString(Server.LogLevel)
log.SetLogSourceLine(Server.DevLogSourceLine) 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() { func Load() {