Software /
code /
prosody
Diff
net/xmppserver_listener.lua @ 2370:d783c8de379d
xmppserver_listener: Make log messages during SRV retries clearer
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Dec 2009 19:01:57 +0000 |
parent | 2369:fe2819d281d5 |
child | 2465:48a209636a42 |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Thu Dec 17 19:00:36 2009 +0000 +++ b/net/xmppserver_listener.lua Thu Dec 17 19:01:57 2009 +0000 @@ -152,9 +152,9 @@ local session = sessions[conn]; if session then if err and err ~= "closed" and session.srv_hosts then - (session.log or log)("debug", "s2s connection closed unexpectedly"); + (session.log or log)("debug", "s2s connection attempt failed: %s", err); if s2s_attempt_connect(session, err) then - (session.log or log)("debug", "...so we're going to try again"); + (session.log or log)("debug", "...so we're going to try another target"); return; -- Session lives for now end end