Skip to content

Commit 8a519ff

Browse files
committed
cleanup
1 parent 4918760 commit 8a519ff

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ METAPATH = METAPATH and util.expandPath(METAPATH) or (ROOT:string() .. '/meta')
5252

5353
---@diagnostic disable-next-line: deprecated
5454
debug.setcstacklimit(200)
55-
--collectgarbage('generational', 5, 25)
56-
collectgarbage('incremental', 120, 120, 0)
55+
collectgarbage('generational', 10, 50)
56+
--collectgarbage('incremental', 120, 120, 0)
5757

5858
---@diagnostic disable-next-line: lowercase-global
5959
log = require 'log'

script/log.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ local function pushLog(level, ...)
6565
local info = debugGetInfo(3, 'Sl')
6666
local text = m.raw(0, level, str, info.source, info.currentline, monotonic())
6767

68-
if log.print then
69-
print(text)
70-
end
71-
7268
return text
7369
end
7470

@@ -127,6 +123,11 @@ function m.raw(thd, level, msg, source, currentline, clock)
127123
m.file:write(buf)
128124
end
129125
end
126+
127+
if log.print then
128+
print(buf)
129+
end
130+
130131
return buf
131132
end
132133

0 commit comments

Comments
 (0)