aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-04 15:25:54 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-04 15:25:54 +0100
commit88af2ea6e9728680b5f0216143246d8486952b91 (patch)
tree713c6073186469d4a775336f9a20c604a2c88879 /util
parent762a906e3654c3179c025a2886e9b7f4821f8666 (diff)
downloadprosody-88af2ea6e9728680b5f0216143246d8486952b91.tar.gz
prosody-88af2ea6e9728680b5f0216143246d8486952b91.zip
Session destruction fixes, some debugging code while we fix the rest. Also change logger to be more useful.
Diffstat (limited to 'util')
-rw-r--r--util/logger.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/logger.lua b/util/logger.lua
index 3d672e94..623ceb67 100644
--- a/util/logger.lua
+++ b/util/logger.lua
@@ -9,7 +9,7 @@ function init(name)
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