From 9fd0a5fd61b5be75198025f1e98e9e2c53bb2d6c Mon Sep 17 00:00:00 2001 From: hoteas Date: Sat, 29 May 2021 00:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=09=E5=AE=8C=E5=96=84error=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.go b/application.go index 14ef40f..8b6f424 100644 --- a/application.go +++ b/application.go @@ -215,7 +215,7 @@ func (that *Application) SetConfig(configPath ...string) { that.Log = GetLog(that.Config.GetString("logFile"), true) 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) }