util/logger.lua

changeset 53
14ea0fe6ca86
parent 30
bcf539295f2d
child 147
ccebb2720741
--- 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 

mercurial