Commit 35b97034 by Torkel Ödegaard

Merge branch 'v4.0.x'

parents 19552450 497a1fce
......@@ -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