From 0f0601ab2dab456fa337f43fd26403cb7f04c5d2 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 13 Feb 2011 18:35:39 +0000 Subject: loggingmanager: Iterate over logging config rules using ipairs rather than pairs --- core/loggingmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index b637058c..be76681d 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -101,7 +101,7 @@ function apply_sink_rules(sink_type) end end - for _, sink_config in pairs(logging_config) do + for _, sink_config in ipairs(logging_config) do if (type(sink_config) == "table" and sink_config.to == sink_type) then add_rule(sink_config); elseif (type(sink_config) == "string" and sink_config:match("^%*(.+)") == sink_type) then -- cgit v1.2.3