aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-22 18:45:58 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-22 18:45:58 +0100
commit79bc5ec98df86b8e1c10d7251488fde3bf883e51 (patch)
tree1527a9da379110d7113e51ccfbf5ca3c18bd0f52 /util
parente535c73ca3478ed3ec69d0edd5fd21d025e28792 (diff)
downloadprosody-79bc5ec98df86b8e1c10d7251488fde3bf883e51.tar.gz
prosody-79bc5ec98df86b8e1c10d7251488fde3bf883e51.zip
util.logger: Remove support for the 'log_sources' option, to remove a dependency on configmanager. I think the equivalent of log_sources can be done with the advanced logging config.
Diffstat (limited to 'util')
-rw-r--r--util/logger.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/util/logger.lua b/util/logger.lua
index 22b7e41b..80b5bcd0 100644
--- a/util/logger.lua
+++ b/util/logger.lua
@@ -8,9 +8,6 @@
local pcall = pcall;
-local config = require "core.configmanager";
-local log_sources = config.get("*", "core", "log_sources");
-
local find = string.find;
local ipairs, pairs, setmetatable = ipairs, pairs, setmetatable;
@@ -26,18 +23,6 @@ local make_logger;
local outfunction = nil;
function init(name)
- if log_sources then
- local log_this = false;
- for _, source in ipairs(log_sources) do
- if find(name, source) then
- log_this = true;
- break;
- end
- end
-
- if not log_this then return function () end end
- end
-
local log_debug = make_logger(name, "debug");
local log_info = make_logger(name, "info");
local log_warn = make_logger(name, "warn");