fix missing line number and func name

This commit is contained in:
Lukas Kropatschek 2016-03-09 18:46:37 +01:00
parent 3c9da5754b
commit 6761878ce3

View File

@ -6415,10 +6415,12 @@ do -- mist.Logger scope
text = text:gsub('$' .. index, value)
end
end
local fName = nil
local cLine = nil
if debug then
local dInfo = debug.getinfo(3)
local fName = dInfo.name
local cLine = dInfo.currentline
fName = dInfo.name
cLine = dInfo.currentline
-- local fsrc = dinfo.short_src
--local fLine = dInfo.linedefined
end