util.sql: Log debug message when connecting to database
[prosody.git] / util / logger.lua
index 4fadb4b9beaec0175d3189086242a8faac74e2fd..cd0769f9230fec3a7645088a5a1a959ad5470582 100644 (file)
@@ -1,7 +1,7 @@
 -- Prosody IM
 -- Copyright (C) 2008-2010 Matthew Wild
 -- Copyright (C) 2008-2010 Waqas Hussain
--- 
+--
 -- This project is MIT/X11 licensed. Please see the
 -- COPYING file in the source package for more information.
 --
@@ -23,8 +23,6 @@ function init(name)
        local log_warn = make_logger(name, "warn");
        local log_error = make_logger(name, "error");
 
-       --name = nil; -- While this line is not commented, will automatically fill in file/line number info
-       local namelen = #name;
        return function (level, message, ...)
                        if level == "debug" then
                                return log_debug(message, ...);