# HG changeset patch # User Matthew Wild # Date 1276132068 -3600 # Node ID 9dd54a708523abb80486468356538ca88a0f3288 # Parent ee2dabe699c903f9abca80115da98bfaabe241eb s2smanager: Move 'sending' debug log message so that it sees the pre-filtered stanzas diff -r ee2dabe699c9 -r 9dd54a708523 core/s2smanager.lua --- a/core/s2smanager.lua Thu Jun 10 01:55:32 2010 +0100 +++ b/core/s2smanager.lua Thu Jun 10 02:07:48 2010 +0100 @@ -140,13 +140,13 @@ 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