diff -r 93e468eb2ffb -r 14ea0fe6ca86 util/logger.lua --- a/util/logger.lua Sat Oct 04 15:24:52 2008 +0100 +++ b/util/logger.lua Sat Oct 04 15:25:54 2008 +0100 @@ -9,7 +9,7 @@ name = nil; -- While this line is not commented, will automatically fill in file/line number info return function (level, message, ...) if not name then - local inf = debug.getinfo(2, 'Snl'); + local inf = debug.getinfo(3, 'Snl'); level = level .. ","..tostring(inf.short_src):match("[^/]*$")..":"..inf.currentline; end if ... then