aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-13 17:17:11 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-13 17:17:11 +0100
commit4a2bfd90517ab2e55dc6cd83866669023387eec4 (patch)
tree6feb211f7ffcc14e665bad1319b5aee49c50b7bc /core
parente24c819d438e1157f05eb1b4e6a0cb2b17e8dcfd (diff)
downloadprosody-4a2bfd90517ab2e55dc6cd83866669023387eec4.tar.gz
prosody-4a2bfd90517ab2e55dc6cd83866669023387eec4.zip
s2smanager: Fix logging for outgoing sessions to also log pre-filtered data
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
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