From 7fb88af782ab2bf46d8c73c493a9c9209a8d296b Mon Sep 17 00:00:00 2001 From: zhangli10 Date: Wed, 19 Oct 2022 16:35:47 +0800 Subject: [PATCH] =?UTF-8?q?Mac=20=E4=B8=8B=20app=20=E5=8C=85=20logger=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logger/cef-logger.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logger/cef-logger.go b/logger/cef-logger.go index 658ddd2a..cd210a61 100644 --- a/logger/cef-logger.go +++ b/logger/cef-logger.go @@ -43,6 +43,7 @@ func loggerInit() { logger.isInit = true logFile, err := os.OpenFile(log_file_name, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644) if err != nil { + logger.enable = false return } logger.enable = true