core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
authorKim Alvefur <zash@zash.se>
Thu, 27 Dec 2012 19:44:58 +0000 (20:44 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 27 Dec 2012 19:44:58 +0000 (20:44 +0100)
core/loggingmanager.lua

index ce25b0e85126f584ff7756ac0c49d36e0fef3e11..c3fc83e444998b7feff05fffc5d711949d841597 100644 (file)
@@ -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;