Software /
code /
prosody
Diff
core/s2smanager.lua @ 259:1485d272400d
Some more logging fixes
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 02:41:37 +0000 |
parent | 258:a93ccd84db83 |
child | 260:182f0c895676 |
line wrap: on
line diff
--- a/core/s2smanager.lua Fri Nov 14 02:38:41 2008 +0000 +++ b/core/s2smanager.lua Fri Nov 14 02:41:37 2008 +0000 @@ -103,11 +103,11 @@ conn = wraptlsclient(cl, conn, to_host, 5269, 0, 1, hosts[from_host].ssl_ctx ); host_session.conn = conn; - + -- Register this outgoing connection so that xmppserver_listener knows about it -- otherwise it will assume it is a new incoming connection cl.register_outgoing(conn, host_session); - + do local conn_name = "s2sout"..tostring(conn):match("[a-f0-9]*$"); host_session.log = logger_init(conn_name); @@ -122,7 +122,6 @@ end function streamopened(session, attr) - session.log("debug", "s2s stream opened"); local send = session.sends2s; session.version = tonumber(attr.version) or 0; @@ -166,7 +165,7 @@ end send("</stream:features>");]] - log("info", "s2s stream opened successfully"); + session.notopen = nil; end