diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-05-06 15:52:47 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-05-06 15:52:47 +0500 |
commit | 63338056fd76dff3eacd77d9d9fcee043fe99796 (patch) | |
tree | ad2c732cb0a8a143d5da95c7ecd9f0e959621bd4 /core | |
parent | 170a2e9b64199f9a72976f5e24556d30c851192e (diff) | |
download | prosody-63338056fd76dff3eacd77d9d9fcee043fe99796.tar.gz prosody-63338056fd76dff3eacd77d9d9fcee043fe99796.zip |
loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config.
Diffstat (limited to 'core')
-rw-r--r-- | core/loggingmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |