Changeset

435:4087aa611de2

Log reason for connection failure
author Matthew Wild <mwild1@gmail.com>
date Wed, 26 Nov 2008 23:47:23 +0000
parents 434:0d7ba3742f7a
children 436:979072fd3981
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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