Log reason for connection failure

Wed, 26 Nov 2008 23:47:23 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 26 Nov 2008 23:47:23 +0000
changeset 435
4087aa611de2
parent 434
0d7ba3742f7a
child 436
979072fd3981

Log reason for connection failure

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Wed Nov 26 23:44:30 2008 +0000
+++ b/core/s2smanager.lua	Wed Nov 26 23:47:23 2008 +0000
@@ -128,7 +128,7 @@
 		host_session.srv_choice = host_session.srv_choice + 1;
 		local srv_choice = host_session.srv_hosts[host_session.srv_choice];
 		connect_host, connect_port = srv_choice.target or to_host, srv_choice.port or connect_port;
-		host_session.log("debug", "Attempt #%d: This time to %s:%d", host_session.srv_choice, connect_host, connect_port);
+		host_session.log("debug", "Connection failed (%s). Attempt #%d: This time to %s:%d", tostring(err), host_session.srv_choice, connect_host, connect_port);
 	else
 		host_session.log("debug", "Out of connection options, can't connect to %s", tostring(host_session.to_host));
 		-- We're out of options

mercurial