From 94962b419306c212d6426195299b2f3ce15987dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 15 Dec 2016 13:54:47 +0100 Subject: [PATCH] fix(logging): fixed default log level filter option not taking effect, fixex #6978 --- pkg/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index 9b4e8be31d0..fe0b312db23 100644 --- a/pkg/log/log.go +++ b/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