Software /
code /
prosody
Changeset
5272:1e555909f23d
core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Dec 2012 20:44:58 +0100 |
parents | 5270:20e14961f630 |
children | 5273:746f07d280e2 5274:0d08c0965824 |
files | core/loggingmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/loggingmanager.lua Wed Dec 26 02:46:49 2012 +0100 +++ b/core/loggingmanager.lua Thu Dec 27 20:44:58 2012 +0100 @@ -67,7 +67,7 @@ for _, level in ipairs(logging_levels) do if type(logging_config[level]) == "string" then local value = logging_config[level]; - if sink_type == "file" then + if sink_type == "file" and not value:match("^%*") then add_rule({ to = sink_type; filename = value;