From 63338056fd76dff3eacd77d9d9fcee043fe99796 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 6 May 2010 15:52:47 +0500 Subject: loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config. --- core/loggingmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/loggingmanager.lua') diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index 9e6d38cb..162d5b2b 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -33,7 +33,7 @@ _G.log = logger.init("general"); module "loggingmanager" -- The log config used if none specified in the config file -local default_logging = { { to = "console" } }; +local default_logging = { { to = "console" , levels = { min = (debug_mode and "debug") or "info" } } }; local default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" }, timestamps = true } }; local default_timestamp = "%b %d %H:%M:%S"; -- The actual config loggingmanager is using -- cgit v1.2.3