完善error库

This commit is contained in:
hoteas 2021-05-29 00:54:27 +08:00
parent 95489fcf49
commit 9fd0a5fd61

View File

@ -215,7 +215,7 @@ func (that *Application) SetConfig(configPath ...string) {
that.Log = GetLog(that.Config.GetString("logFile"), true) that.Log = GetLog(that.Config.GetString("logFile"), true)
that.Error = Error{Logger: that.Log} that.Error = Error{Logger: that.Log}
if that.Config.GetBool("webConnectLogShow") { if that.Config.Get("webConnectLogShow") == nil || that.Config.GetBool("webConnectLogShow") {
that.WebConnectLog = GetLog(that.Config.GetString("webConnectLogFile"), false) that.WebConnectLog = GetLog(that.Config.GetString("webConnectLogFile"), false)
} }