refactor(log): dont give a thing about var that is not even declared

This commit is contained in:
Smirnov Oleksandr 2024-04-17 18:35:49 +03:00
parent fa223c8904
commit 385b951938

View file

@ -96,7 +96,7 @@ do
local nameupper = level_config.name:upper()
local msg = message_maker(...)
local info = debug.getinfo(config.info_level or 2, "Sl")
local info = debug.getinfo(2, "Sl")
local lineinfo = info.short_src .. ":" .. info.currentline
-- Output to console