diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-04 17:51:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-04 17:51:39 +0100 |
commit | c9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80 (patch) | |
tree | 3c782bc992c02df8d39f8e08b875204c7b118a6e /core | |
parent | c32e03898c2b4cfe16ca932cefc0b532e5c36463 (diff) | |
download | prosody-c9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80.tar.gz prosody-c9f2829f6e58e2fbc06ad23c69cb51ac25aa7e80.zip |
loggingmanager: Make initial value for width of log name configurable
Diffstat (limited to 'core')
-rw-r--r-- | core/loggingmanager.lua | 4 |
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; |