# HG changeset patch # User Matthew Wild # Date 1297622139 0 # Node ID e463e1df1bda2bfc3f920b9fcf9f0be6d3ae4240 # Parent eef75a0c85e3a7b633e094527d87bc4d48d55919 loggingmanager: Iterate over logging config rules using ipairs rather than pairs diff -r eef75a0c85e3 -r e463e1df1bda core/loggingmanager.lua --- a/core/loggingmanager.lua Thu Feb 10 21:09:20 2011 +0000 +++ b/core/loggingmanager.lua Sun Feb 13 18:35:39 2011 +0000 @@ -101,7 +101,7 @@ 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