# HG changeset patch # User Matthew Wild # Date 1282499158 -3600 # Node ID 67cdc0366d46310f616265baeccb3323d729d7e1 # Parent 8cf30367aa4faa4fe10bf41cbc429f88bd7533ca 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. diff -r 8cf30367aa4f -r 67cdc0366d46 util/logger.lua --- a/util/logger.lua Mon Aug 16 18:51:22 2010 +0200 +++ b/util/logger.lua Sun Aug 22 18:45:58 2010 +0100 @@ -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 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");