aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-04 17:51:39 +0100
committerKim Alvefur <zash@zash.se>2016-02-04 17:51:39 +0100
commitc9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80 (patch)
tree3c782bc992c02df8d39f8e08b875204c7b118a6e /core/loggingmanager.lua
parentc32e03898c2b4cfe16ca932cefc0b532e5c36463 (diff)
downloadprosody-c9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80.tar.gz
prosody-c9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80.zip
loggingmanager: Make initial value for width of log name configurable
Diffstat (limited to 'core/loggingmanager.lua')
-rw-r--r--core/loggingmanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index ee1aa362..b47c2ea5 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -219,7 +219,9 @@ local function log_to_stdout(sink_config)
if not sink_config.timestamps then
sink_config.timestamps = false;
end
- sink_config.source_width = 20;
+ if sink_config.source_width == nil then
+ sink_config.source_width = 20;
+ end
return log_to_file(sink_config, stdout);
end
log_sink_types.stdout = log_to_stdout;