Compare commits

..

1 Commits

Author SHA1 Message Date
Evan Chen 04580e4672 fix: log level and log prod not affected 2021-11-04 03:46:27 +08:00
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ func (cui *ConfigUI) LoadConfig(confstr string) error {
cui.ResultBellow = tmpConf.ResultBellow
cui.LogLevel = tmpConf.LogLevel
if cui.LogLevel == 0 {
cui.LogLevel = klog.Lerror | klog.Linfo
}
klog.LEVEL = cui.LogLevel
cui.LogPath = tmpConf.LogPath
cui.setLog()