aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-06 15:52:47 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-06 15:52:47 +0500
commit63338056fd76dff3eacd77d9d9fcee043fe99796 (patch)
treead2c732cb0a8a143d5da95c7ecd9f0e959621bd4 /core/loggingmanager.lua
parent170a2e9b64199f9a72976f5e24556d30c851192e (diff)
downloadprosody-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/loggingmanager.lua')
-rw-r--r--core/loggingmanager.lua2
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