Software /
code /
prosody
Diff
util/logger.lua @ 4937:b3fe52353295
util.logger: Remove some redundant code
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 25 Jun 2012 00:16:08 +0100 |
parent | 4627:b046cafc81a8 |
child | 5776:bd0ff8ae98a8 |
line wrap: on
line diff
--- a/util/logger.lua Thu Jul 05 17:58:47 2012 +0200 +++ b/util/logger.lua Mon Jun 25 00:16:08 2012 +0100 @@ -23,8 +23,6 @@ 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, ...);