# HG changeset patch # User Kim Alvefur # Date 1731311397 -3600 # Node ID 63492b6e7fb6dacac7064faf10d1b933fc2f7ee5 # Parent d3649ae194ab7022d5f3526099834cd96882b75c mod_s2s: Really fix logging of outgoing stanza queue counts Some confusion happened in 42b98ee73ca8, possibly because .count() returns the items? diff -r d3649ae194ab -r 63492b6e7fb6 plugins/mod_s2s.lua --- a/plugins/mod_s2s.lua Sun Nov 10 15:10:26 2024 +0100 +++ b/plugins/mod_s2s.lua Mon Nov 11 08:49:57 2024 +0100 @@ -135,7 +135,7 @@ local function bounce_sendq(session, reason) local sendq = session.sendq; if not sendq then return; end - session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", sendq.items(), session.to_host); + session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", sendq.count(), session.to_host); local dummy = { type = "s2sin"; send = function () @@ -366,7 +366,7 @@ if session.direction == "outgoing" then if sendq then - session.log("debug", "sending %d queued stanzas across new outgoing connection to %s", sendq.items(), session.to_host); + session.log("debug", "sending %d queued stanzas across new outgoing connection to %s", sendq.count(), session.to_host); local send = session.sends2s; for stanza in sendq:consume() do -- TODO check send success