LOG模块会顺便print一下
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user