diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-26 23:47:23 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-26 23:47:23 +0000 |
commit | 7d402ac968ddd9bada9b9ddc5953293322881fb1 (patch) | |
tree | 413640d8a5cd42c8d9fac65bba4dc21cf9d855b4 /core | |
parent | fba46bce304eeeec0e3eedf9792dc071c2f39f85 (diff) | |
download | prosody-7d402ac968ddd9bada9b9ddc5953293322881fb1.tar.gz prosody-7d402ac968ddd9bada9b9ddc5953293322881fb1.zip |
Log reason for connection failure
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index df8c3937..c584e78b 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -128,7 +128,7 @@ function attempt_connection(host_session, err) 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 |