diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-22 19:41:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-22 19:41:29 +0200 |
commit | 9ef04c0eb0d7c696789398e5f071f73ca969a9f7 (patch) | |
tree | c47214e4ef0c61f71d05ff94cefa7eb71bfdfb3b | |
parent | 13463cb1004eac4f18270d52002b88e04eee42d5 (diff) | |
download | prosody-9ef04c0eb0d7c696789398e5f071f73ca969a9f7.tar.gz prosody-9ef04c0eb0d7c696789398e5f071f73ca969a9f7.zip |
sessionmanager: Log top tag of outgoing stanzas on c2s (#776)
-rw-r--r-- | core/sessionmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |