# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1376435919 -3600
# Node ID c610b5fb53f3619a08ee90b2b3d65b1f0246d4eb
# Parent  a493b79cfad08be5f85df3a9881edf6081045517
mod_s2s/s2sout.lib: Improve error message logged at 'info' level when failing to connect to a host. Now 'Failed in all attempts to connect to XYZ'

diff -r a493b79cfad0 -r c610b5fb53f3 plugins/mod_s2s/s2sout.lib.lua
--- a/plugins/mod_s2s/s2sout.lib.lua	Tue Aug 13 23:38:50 2013 +0100
+++ b/plugins/mod_s2s/s2sout.lib.lua	Wed Aug 14 00:18:39 2013 +0100
@@ -129,7 +129,7 @@
 		connect_host, connect_port = srv_choice.target or to_host, srv_choice.port or connect_port;
 		host_session.log("info", "Connection failed (%s). Attempt #%d: This time to %s:%d", tostring(err), host_session.srv_choice, connect_host, connect_port);
 	else
-		host_session.log("info", "Out of connection options, can't connect to %s", tostring(host_session.to_host));
+		host_session.log("info", "Failed in all attempts to connect to %s", tostring(host_session.to_host));
 		-- We're out of options
 		return false;
 	end