修改报错日志格式

This commit is contained in:
MrZ626
2021-03-17 21:19:20 +08:00
parent 8e382f104b
commit d803802b43

View File

@@ -376,14 +376,14 @@ function love.errorhandler(msg)
--Write messages to log file
love.filesystem.append("conf/error.log",
os.date("%Y/%m/%d_%A_%H:%M:%S\n")..
SYSTEM.."-"..VERSION_NAME.." scene: "..(SCN and SCN.cur or"NULL").."\n"..
#ERRDATA.." crash(es) "..SYSTEM.."-"..VERSION_NAME.." scene: "..(SCN and SCN.cur or"NULL").."\n"..
errData.mes.."\n\n"
)
ins(ERRDATA,errData)
--Force quit if error too much
if #ERRDATA>=6 then return end
if #ERRDATA>=5 then return end
--Get screencapture
BG.set("none")