Commit 94962b41 by Torkel Ödegaard

fix(logging): fixed default log level filter option not taking effect, fixex #6978

parent f9fba0e9
......@@ -122,7 +122,7 @@ var logLevels = map[string]log15.Lvl{
}
func getLogLevelFromConfig(key string, defaultName string, cfg *ini.File) (string, log15.Lvl) {
levelName := cfg.Section(key).Key("level").MustString("info")
levelName := cfg.Section(key).Key("level").MustString(defaultName)
levelName = strings.ToLower(levelName)
level := getLogLevelFromString(levelName)
return levelName, level
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment