diff options
Diffstat (limited to 'script/log.lua')
-rw-r--r-- | script/log.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/script/log.lua b/script/log.lua index 2076348c..597bdc4e 100644 --- a/script/log.lua +++ b/script/log.lua @@ -65,10 +65,6 @@ local function pushLog(level, ...) local info = debugGetInfo(3, 'Sl') local text = m.raw(0, level, str, info.source, info.currentline, monotonic()) - if log.print then - print(text) - end - return text end @@ -127,6 +123,11 @@ function m.raw(thd, level, msg, source, currentline, clock) m.file:write(buf) end end + + if log.print then + print(buf) + end + return buf end |