From 816598f46e46a3e7eb45ab83b174c312ee7c6def Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 10 Jun 2010 02:07:48 +0100 Subject: s2smanager: Move 'sending' debug log message so that it sees the pre-filtered stanzas --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/s2smanager.lua') 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 -- cgit v1.2.3