Mac 下 app 包 logger 错误修复

This commit is contained in:
zhangli10 2022-10-19 16:35:47 +08:00
parent 5228235a63
commit 7fb88af782

View File

@ -43,6 +43,7 @@ func loggerInit() {
logger.isInit = true logger.isInit = true
logFile, err := os.OpenFile(log_file_name, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644) logFile, err := os.OpenFile(log_file_name, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
if err != nil { if err != nil {
logger.enable = false
return return
} }
logger.enable = true logger.enable = true