projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.sql: Log debug message when connecting to database
[prosody.git]
/
util
/
logger.lua
diff --git
a/util/logger.lua
b/util/logger.lua
index 4fadb4b9beaec0175d3189086242a8faac74e2fd..cd0769f9230fec3a7645088a5a1a959ad5470582 100644
(file)
--- a/
util/logger.lua
+++ b/
util/logger.lua
@@
-1,7
+1,7
@@
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- 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.
--
-- 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");
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, ...);
return function (level, message, ...)
if level == "debug" then
return log_debug(message, ...);