完善error库
This commit is contained in:
parent
95489fcf49
commit
9fd0a5fd61
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user