aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-02-13 18:35:39 +0000
committerMatthew Wild <mwild1@gmail.com>2011-02-13 18:35:39 +0000
commit807eb44ee649b509d5284da4f44dfd702e8781f0 (patch)
treeb7ffae67ae74a49123014d371fa38d534b769f0c
parent037b82e6f071c187bd2f2a7e44ea061c7a6ddc70 (diff)
downloadprosody-807eb44ee649b509d5284da4f44dfd702e8781f0.tar.gz
prosody-807eb44ee649b509d5284da4f44dfd702e8781f0.zip
loggingmanager: Iterate over logging config rules using ipairs rather than pairs
-rw-r--r--core/loggingmanager.lua2
1 files changed, 1 insertions, 1 deletions
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