mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
fix(logging): fixed default log level filter option not taking effect, fixex #6978
This commit is contained in:
parent
f9fba0e935
commit
94962b4193
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user