aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-10 02:07:48 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-10 02:07:48 +0100
commit816598f46e46a3e7eb45ab83b174c312ee7c6def (patch)
tree169e0fc9532f3d5fcf45190816bd5c3458b021d7 /core/s2smanager.lua
parent193e01e5b988ec2d8dc571a18f3e80c6260edb1f (diff)
downloadprosody-816598f46e46a3e7eb45ab83b174c312ee7c6def.tar.gz
prosody-816598f46e46a3e7eb45ab83b174c312ee7c6def.zip
s2smanager: Move 'sending' debug log message so that it sees the pre-filtered stanzas
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 ced367a3..d40ab9b8 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -140,13 +140,13 @@ function new_incoming(conn)
session.log = log;
local filter = initialize_filters(session);
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, t);
end
end