aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-23 13:29:33 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-23 13:29:33 +0100
commit6b1d7c1e1c4d5a8ad27fb09923a4add8d6e84c4f (patch)
treef3b7165786bfa19575b62c9f364fb098c27f3ffd /plugins/mod_s2s/s2sout.lib.lua
parent8d8f03c5fa170d5458a65b8d55516a8cbf17645c (diff)
downloadprosody-6b1d7c1e1c4d5a8ad27fb09923a4add8d6e84c4f.tar.gz
prosody-6b1d7c1e1c4d5a8ad27fb09923a4add8d6e84c4f.zip
mod_s2s/s2sout.lib: Use %s to insert strings into log messages instead of concatenation
Diffstat (limited to 'plugins/mod_s2s/s2sout.lib.lua')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index d2c6023e..17978b39 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -95,14 +95,14 @@ function s2sout.attempt_connection(host_session, err)
handle = nil;
host_session.connecting = nil;
if answer then
- log("debug", to_host.." has SRV records, handling...");
+ log("debug", "%s has SRV records, handling...", to_host);
local srv_hosts = {};
host_session.srv_hosts = srv_hosts;
for _, record in ipairs(answer) do
t_insert(srv_hosts, record.srv);
end
if #srv_hosts == 1 and srv_hosts[1].target == "." then
- log("debug", to_host.." does not provide a XMPP service");
+ log("debug", "%s does not provide a XMPP service", to_host);
s2s_destroy_session(host_session, err); -- Nothing to see here
return;
end
@@ -115,7 +115,7 @@ function s2sout.attempt_connection(host_session, err)
log("debug", "Best record found, will connect to %s:%d", connect_host, connect_port);
end
else
- log("debug", to_host.." has no SRV records, falling back to A/AAAA");
+ log("debug", "%s has no SRV records, falling back to A/AAAA", to_host);
end
-- Try with SRV, or just the plain hostname if no SRV
local ok, err = s2sout.try_connect(host_session, connect_host, connect_port);