Explorar el Código

Merge branch 'v4.0.x'

Torkel Ödegaard hace 9 años
padre
commit
35b970347a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/log/log.go

+ 1 - 1
pkg/log/log.go

@@ -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