mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'v4.0.x'
This commit is contained in:
commit
35b970347a
@ -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