aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-04-07 17:41:35 +0100
committerMatthew Wild <mwild1@gmail.com>2010-04-07 17:41:35 +0100
commite0b8ae73c0c3d432aafa5a94b256442e55395ad5 (patch)
treeeafc01f05dc80345cf51525aadd139ccb4bb0d96 /core/loggingmanager.lua
parent474f0d46466077959d3cff8ed4f51bebdda835db (diff)
downloadprosody-e0b8ae73c0c3d432aafa5a94b256442e55395ad5.tar.gz
prosody-e0b8ae73c0c3d432aafa5a94b256442e55395ad5.zip
loggingmanager: Observe 'debug' config setting for console logging too
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..b34d0413 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" ) } };
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