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 | a1defac02894e126fe70c6a926a783c2a4cc1b80 (patch) | |
tree | 3c782bc992c02df8d39f8e08b875204c7b118a6e | |
parent | f19ba794317a136dfc8aadf1e536dc8a83fed16c (diff) | |
download | prosody-a1defac02894e126fe70c6a926a783c2a4cc1b80.tar.gz prosody-a1defac02894e126fe70c6a926a783c2a4cc1b80.zip |
loggingmanager: Make initial value for width of log name configurable
-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; |