From 9ef04c0eb0d7c696789398e5f071f73ca969a9f7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 22 Jul 2018 19:41:29 +0200 Subject: sessionmanager: Log top tag of outgoing stanzas on c2s (#776) --- core/sessionmanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 6c9ecc24..ac387021 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -32,6 +32,7 @@ local function new_session(conn) local filter = initialize_filters(session); local w = conn.write; session.send = function (t) + session.log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?")); if t.name then t = filter("stanzas/out", t); end -- cgit v1.2.3