aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-25 11:20:56 +0100
committerKim Alvefur <zash@zash.se>2018-02-25 11:20:56 +0100
commitfc00ed82892c3b0144ac7dcb099c38f1e8dccb3e (patch)
tree577f3ce310ea69743d3dc3bd57208c4c05de3fca /plugins/mod_s2s
parent28ba10b6b49b37a6786fde91a9f2fd5b7cd3fa52 (diff)
downloadprosody-fc00ed82892c3b0144ac7dcb099c38f1e8dccb3e.tar.gz
prosody-fc00ed82892c3b0144ac7dcb099c38f1e8dccb3e.zip
mod_s2s: Don't use string concatenation when passing values to logging
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index f331ee52..e85ec6bd 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -60,7 +60,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 "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host));
+ session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", #sendq, session.to_host);
local dummy = {
type = "s2sin";
send = function ()