Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 8545:248bab2bd0c9
mod_s2s: Don't use string concatenation when passing values to logging
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Feb 2018 11:20:56 +0100 |
parent | 8483:6d47b74926dd |
child | 8763:67ecff7be011 |
comparison
equal
deleted
inserted
replaced
8544:e7214441523b | 8545:248bab2bd0c9 |
---|---|
58 | 58 |
59 local bouncy_stanzas = { message = true, presence = true, iq = true }; | 59 local bouncy_stanzas = { message = true, presence = true, iq = true }; |
60 local function bounce_sendq(session, reason) | 60 local function bounce_sendq(session, reason) |
61 local sendq = session.sendq; | 61 local sendq = session.sendq; |
62 if not sendq then return; end | 62 if not sendq then return; end |
63 session.log("info", "Sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host)); | 63 session.log("info", "Sending error replies for %d queued stanzas because of failed outgoing connection to %s", #sendq, session.to_host); |
64 local dummy = { | 64 local dummy = { |
65 type = "s2sin"; | 65 type = "s2sin"; |
66 send = function () | 66 send = function () |
67 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); | 67 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); |
68 end; | 68 end; |