Software /
code /
prosody
Diff
core/s2smanager.lua @ 1468:83b297a412a2
s2smanager: Log the hostname and address when s2s connection fails instantly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 03 Jul 2009 14:58:11 +0100 |
parent | 1450:c1c7b27b983b |
child | 1492:aaeccebad0f3 |
line wrap: on
line diff
--- a/core/s2smanager.lua Fri Jul 03 04:24:30 2009 +0100 +++ b/core/s2smanager.lua Fri Jul 03 14:58:11 2009 +0100 @@ -238,7 +238,7 @@ conn:settimeout(0); local success, err = conn:connect(connect_host, connect_port); if not success and err ~= "timeout" then - log("warn", "s2s connect() failed: %s", err); + log("warn", "s2s connect() to %s (%s:%d) failed: %s", host_session.to_host, connect_host, connect_port, err); return false; end