projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70de3cf
)
loggingmanager: Make initial value for width of log name configurable
author
Kim Alvefur
<zash@zash.se>
Thu, 4 Feb 2016 16:51:39 +0000
(17:51 +0100)
committer
Kim Alvefur
<zash@zash.se>
Thu, 4 Feb 2016 16:51:39 +0000
(17:51 +0100)
core/loggingmanager.lua
patch
|
blob
|
history
diff --git
a/core/loggingmanager.lua
b/core/loggingmanager.lua
index ee1aa362f30e1b82bb5187be851a32c4df753efb..b47c2ea5114316d5db4dc680a7ad7d477595841c 100644
(file)
--- 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;