diff --git a/src/log.lua b/src/log.lua index 9acfc64..c2f5086 100644 --- a/src/log.lua +++ b/src/log.lua @@ -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