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'
authorMatthew Wild <mwild1@gmail.com>
Wed, 14 Aug 2013 00:18:39 +0100
changeset 5798 c610b5fb53f3
parent 5797 a493b79cfad0
child 5799 4a7e90b4c97d
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'
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