improve: 支持通过 flag 开启 debug 模式
This commit is contained in:
@@ -11,6 +11,9 @@ import (
|
||||
)
|
||||
|
||||
func initLog() {
|
||||
if Flags.Debug {
|
||||
Config.Settings.Log.DebugLevel = true
|
||||
}
|
||||
if Config.Settings.Log.DebugLevel {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user