mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 11:47:37 +08:00
Mac 下 app 包 logger 错误修复
This commit is contained in:
parent
5228235a63
commit
7fb88af782
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user