Mercurial > prosody-hg
comparison util/logger.lua @ 977:6f0bdf9e4dfb
Remove more debugging code which was accidentally committed (don't trust hg)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 10 Apr 2009 10:38:04 +0100 |
| parents | 82f7261c0482 |
| children | 9e31e9397cff |
comparison
equal
deleted
inserted
replaced
| 976:17af9851c81d | 977:6f0bdf9e4dfb |
|---|---|
| 47 end | 47 end |
| 48 | 48 |
| 49 if not log_this then return function () end end | 49 if not log_this then return function () end end |
| 50 end | 50 end |
| 51 | 51 |
| 52 if name == "modulemanager" or name:match("^c2s") or name == "datamanager" then return function () end; end | |
| 53 | |
| 54 --name = nil; -- While this line is not commented, will automatically fill in file/line number info | 52 --name = nil; -- While this line is not commented, will automatically fill in file/line number info |
| 55 local namelen = #name; | 53 local namelen = #name; |
| 56 return function (level, message, ...) | 54 return function (level, message, ...) |
| 57 if outfunction then return outfunction(name, level, message, ...); end | 55 if outfunction then return outfunction(name, level, message, ...); end |
| 58 | 56 |
