aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-17 19:01:57 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-17 19:01:57 +0000
commit518fdb5c44e87ce878297af1877db5be3af7c144 (patch)
tree6e9dbfdea624b69f6b576fbde8a871eaa0b1fefe
parent897287609c626acf345eea358e08b63933a1f946 (diff)
downloadprosody-518fdb5c44e87ce878297af1877db5be3af7c144.tar.gz
prosody-518fdb5c44e87ce878297af1877db5be3af7c144.zip
xmppserver_listener: Make log messages during SRV retries clearer
-rw-r--r--net/xmppserver_listener.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua
index 403030b0..f49b29fc 100644
--- a/net/xmppserver_listener.lua
+++ b/net/xmppserver_listener.lua
@@ -152,9 +152,9 @@ function xmppserver.ondisconnect(conn, err)
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