core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
authorKim Alvefur <zash@zash.se>
Thu, 27 Dec 2012 20:44:58 +0100
changeset 5272 1e555909f23d
parent 5270 20e14961f630
child 5273 746f07d280e2
child 5274 0d08c0965824
core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
core/loggingmanager.lua
--- 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;