aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-11-11 08:49:57 +0100
committerKim Alvefur <zash@zash.se>2024-11-11 08:49:57 +0100
commitcc34f41086e939301a1e6b85e7405bcef620ebff (patch)
tree7db495d28702fc852c99067cc80d062a72464d8b /plugins
parente0977138831d70bd695ca2f69a98ca34fdfad3b7 (diff)
downloadprosody-cc34f41086e939301a1e6b85e7405bcef620ebff.tar.gz
prosody-cc34f41086e939301a1e6b85e7405bcef620ebff.zip
mod_s2s: Really fix logging of outgoing stanza queue counts
Some confusion happened in 42b98ee73ca8, possibly because .count() returns the items?
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index 8a402406..638ace3d 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -135,7 +135,7 @@ local bouncy_stanzas = { message = true, presence = true, iq = true };
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 @@ function mark_connected(session)
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