From 4a2bfd90517ab2e55dc6cd83866669023387eec4 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 13 Jun 2010 17:17:11 +0100 Subject: s2smanager: Fix logging for outgoing sessions to also log pre-filtered data --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index d40ab9b8..711f9464 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -349,13 +349,13 @@ function make_connect(host_session, connect_host, connect_port) local filter = initialize_filters(host_session); local w, log = conn.write, host_session.log; host_session.sends2s = function (t) + log("debug", "sending: %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); if t.name then t = filter("stanzas/out", t); end if t then t = filter("bytes/out", tostring(t)); if t then - log("debug", "sending: %s", (t.top_tag and t:top_tag()) or t:match("^[^>]*>?")); return w(conn, tostring(t)); end end -- cgit v1.2.3