Changeset

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
parents 8544:e7214441523b
children 8546:d66916dc318a
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ()