loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config.

Thu, 06 May 2010 15:52:47 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 06 May 2010 15:52:47 +0500
changeset 3018
d7c80d23ed21
parent 2983
1d3355552e3d
child 3019
6b2e4b581717
child 3026
dec4527a7499

loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config.

core/loggingmanager.lua file | annotate | diff | comparison | revisions
--- a/core/loggingmanager.lua	Wed Apr 14 13:12:14 2010 +0100
+++ b/core/loggingmanager.lua	Thu May 06 15:52:47 2010 +0500
@@ -33,7 +33,7 @@
 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

mercurial