aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-12-27 20:44:58 +0100
committerKim Alvefur <zash@zash.se>2012-12-27 20:44:58 +0100
commitc141ffdbf604abb6536ff200ac21c7499fb69731 (patch)
tree6c2fa5bbe83ff58fbbb27b3a36ded5f256e8b3dc /core/loggingmanager.lua
parent020dc0052ac01b65d59bcf4e45c481ee446c6c64 (diff)
downloadprosody-c141ffdbf604abb6536ff200ac21c7499fb69731.tar.gz
prosody-c141ffdbf604abb6536ff200ac21c7499fb69731.zip
core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
Diffstat (limited to 'core/loggingmanager.lua')
-rw-r--r--core/loggingmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index ce25b0e8..c3fc83e4 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -67,7 +67,7 @@ function apply_sink_rules(sink_type)
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;