Software /
code /
prosody
Changeset
4140:e463e1df1bda
loggingmanager: Iterate over logging config rules using ipairs rather than pairs
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 13 Feb 2011 18:35:39 +0000 |
parents | 4139:eef75a0c85e3 |
children | 4141:ef94984c44a0 |
files | core/loggingmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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