# HG changeset patch # User Kim Alvefur # Date 1519554056 -3600 # Node ID 248bab2bd0c93e99c01dd9338be11e6af720868e # Parent e7214441523b449c62ddeeb9d8aa29ff147aff07 mod_s2s: Don't use string concatenation when passing values to logging diff -r e7214441523b -r 248bab2bd0c9 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sat Feb 24 14:45:06 2018 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Sun Feb 25 11:20:56 2018 +0100 @@ -60,7 +60,7 @@ 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 ()