Compare commits
1 Commits
04580e4672
...
d501864585
Author | SHA1 | Date |
---|---|---|
Evan Chen | d501864585 |
|
@ -124,6 +124,7 @@ func (cui *ConfigUI) LoadConfig(confstr string) error {
|
||||||
cui.Files = tmpConf.Files
|
cui.Files = tmpConf.Files
|
||||||
cui.AllowIP = tmpConf.AllowIP
|
cui.AllowIP = tmpConf.AllowIP
|
||||||
cui.Prod = tmpConf.Prod
|
cui.Prod = tmpConf.Prod
|
||||||
|
klog.PROD = cui.Prod
|
||||||
cui.ConfigPath = tmpConf.ConfigPath
|
cui.ConfigPath = tmpConf.ConfigPath
|
||||||
cui.HideConfig = tmpConf.HideConfig
|
cui.HideConfig = tmpConf.HideConfig
|
||||||
cui.NoReconfig = tmpConf.NoReconfig
|
cui.NoReconfig = tmpConf.NoReconfig
|
||||||
|
@ -153,6 +154,7 @@ func (cui *ConfigUI) LoadConfig(confstr string) error {
|
||||||
cui.ResultBellow = tmpConf.ResultBellow
|
cui.ResultBellow = tmpConf.ResultBellow
|
||||||
|
|
||||||
cui.LogLevel = tmpConf.LogLevel
|
cui.LogLevel = tmpConf.LogLevel
|
||||||
|
klog.LEVEL = cui.LogLevel
|
||||||
cui.LogPath = tmpConf.LogPath
|
cui.LogPath = tmpConf.LogPath
|
||||||
cui.setLog()
|
cui.setLog()
|
||||||
// fmt.Printf("%+v", cui)
|
// fmt.Printf("%+v", cui)
|
||||||
|
|
Loading…
Reference in New Issue