Chore: Make logger mutable for regression test (#49146)

* Log: make logger mutable

* remove flag from public configuration
This commit is contained in:
ying-jeanne
2022-05-18 17:04:52 +02:00
committed by GitHub
parent 71e1305364
commit 4e3f53f106
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -378,6 +378,11 @@ func ReadLoggingConfig(modes []string, logsPath string, cfg *ini.File) error {
return err
}
logEnabled := cfg.Section("log").Key("enabled").MustBool(true)
if !logEnabled {
return nil
}
defaultLevelName, _ := getLogLevelFromConfig("log", "info", cfg)
defaultFilters := getFilters(util.SplitString(cfg.Section("log").Key("filters").String()))