Software /
code /
prosody
Diff
core/loggingmanager.lua @ 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 |
parent | 5001:78a3d275715a |
child | 5377:898454038524 |
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;