LOG模块会顺便print一下

This commit is contained in:
MrZ626
2021-10-13 11:39:28 +08:00
parent 7a22dead81
commit ad91ac9c93

View File

@@ -8,6 +8,7 @@ end
local LOG=setmetatable({logs=logs},{
__call=function(_,message)
print(message)
log(message)
end
})
@@ -16,4 +17,4 @@ function LOG.read()
return table.concat(logs,"\n")
end
return LOG
return LOG