# HG changeset patch # User Matthew Wild # Date 1276445831 -3600 # Node ID 9374f84c6677ee5c5eb13b1efdc3ea3161859510 # Parent e1c787c6f86e506ebf1d735d56e2c7f664bff3ff s2smanager: Fix logging for outgoing sessions to also log pre-filtered data diff -r e1c787c6f86e -r 9374f84c6677 core/s2smanager.lua --- a/core/s2smanager.lua Sun Jun 13 22:06:06 2010 +0500 +++ b/core/s2smanager.lua Sun Jun 13 17:17:11 2010 +0100 @@ -349,13 +349,13 @@ 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