mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Fix logger if debug module is sanitized.
This commit is contained in:
parent
f74c5b488a
commit
5fdaa269fd
10
mist.lua
10
mist.lua
@ -6417,15 +6417,19 @@ do -- mist.Logger scope
|
||||
text = text:gsub('$' .. index, value)
|
||||
end
|
||||
end
|
||||
if debug then
|
||||
local dInfo = debug.getinfo(3)
|
||||
local fName = dInfo.name
|
||||
local cLine = dInfo.currentline
|
||||
-- local fsrc = dinfo.short_src
|
||||
--local fLine = dInfo.linedefined
|
||||
local cLine = dInfo.currentline
|
||||
if fName then
|
||||
end
|
||||
if fName and cLine then
|
||||
return fName .. '|' .. cLine .. ': ' .. text
|
||||
else
|
||||
elseif cLine then
|
||||
return cLine .. ': ' .. text
|
||||
else
|
||||
return ' ' .. text
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user