Software /
code /
prosody
Changeset
4123:0c9399a66b17
loggingmanager: Re-read 'debug' option on reload.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 13 Jan 2011 02:31:10 +0500 |
parents | 4117:b42ca82b0ea4 |
children | 4124:3761aa844d65 |
files | core/loggingmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/loggingmanager.lua Tue Jan 11 22:40:09 2011 +0000 +++ b/core/loggingmanager.lua Thu Jan 13 02:31:10 2011 +0500 @@ -27,8 +27,6 @@ local logger = require "util.logger"; local prosody = prosody; -local debug_mode = config.get("*", "core", "debug"); - _G.log = logger.init("general"); module "loggingmanager" @@ -166,6 +164,8 @@ logger.reset(); + local debug_mode = config.get("*", "core", "debug"); + default_logging = { { to = "console" , levels = { min = (debug_mode and "debug") or "info" } } }; default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" }, timestamps = true }