aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-18 16:16:27 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-18 16:16:27 +0100
commit48879b4b0d17166786fc0cb6397de79a611e9454 (patch)
tree2b22497ec76fddb2863ad4c9fce8d97dde1e1f2d /core/s2smanager.lua
parent766508f5f8c0b8ccedcd9149d72b5908cb46dc9b (diff)
downloadprosody-48879b4b0d17166786fc0cb6397de79a611e9454.tar.gz
prosody-48879b4b0d17166786fc0cb6397de79a611e9454.zip
s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 73602e82..3613707c 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -315,7 +315,7 @@ function make_connect(host_session, connect_host, connect_port)
-- otherwise it will assume it is a new incoming connection
cl.register_outgoing(conn, host_session);
- local w = conn.write;
+ local w, log = conn.write, host_session.log;
host_session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end
conn.write(format([[<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' from='%s' to='%s' version='1.0' xml:lang='en'>]], from_host, to_host));