diff --git a/configui.go b/configui.go index 482fd4e..0aba21f 100644 --- a/configui.go +++ b/configui.go @@ -124,6 +124,7 @@ func (cui *ConfigUI) LoadConfig(confstr string) error { cui.Files = tmpConf.Files cui.AllowIP = tmpConf.AllowIP cui.Prod = tmpConf.Prod + klog.PROD = cui.Prod cui.ConfigPath = tmpConf.ConfigPath cui.HideConfig = tmpConf.HideConfig cui.NoReconfig = tmpConf.NoReconfig @@ -153,6 +154,7 @@ func (cui *ConfigUI) LoadConfig(confstr string) error { cui.ResultBellow = tmpConf.ResultBellow cui.LogLevel = tmpConf.LogLevel + klog.LEVEL = cui.LogLevel cui.LogPath = tmpConf.LogPath cui.setLog() // fmt.Printf("%+v", cui)