This commit is contained in:
duncathan 2021-03-28 20:56:33 -06:00
parent d1a270b234
commit 00f29cb90c

View file

@ -2,7 +2,9 @@ local LOG_LEVEL, _logCounts, _logLines = 4, nil, nil
local function _log(level, prefix, text, ...)
if LOG_LEVEL >= level then
local text = prefix .. text
print(text, ...)
if level ~= 4 then
print(text, ...)
end
table.insert(_logLines, text)
end
_logCounts[level] = _logCounts[level] + 1