aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-06 15:38:11 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-06 15:38:11 +0500
commit6568eebd4b875b412bf3a49bc93a2c66c27ebc4d (patch)
treecf859bcf2191990615d793caba0ee34a1bfd7357 /core/loggingmanager.lua
parent4af6813db9ffa6dcacd2eb20417ca4667159f9af (diff)
downloadprosody-6568eebd4b875b412bf3a49bc93a2c66c27ebc4d.tar.gz
prosody-6568eebd4b875b412bf3a49bc93a2c66c27ebc4d.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 b329bf11..3ec696d5 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