X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Floggingmanager.lua;fp=core%2Floggingmanager.lua;h=be76681dd8ba217f1d218c33287cb37762897ec4;hb=749102c2a31d83dbe902234f65dc740242fa1be9;hp=b637058c50aceb434bfa306b4a2bdc004316e5f5;hpb=ca6f3ba4fdb22f016d8dcedf2cc74852a30febf8;p=prosody.git 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