aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-22 19:41:29 +0200
committerKim Alvefur <zash@zash.se>2018-07-22 19:41:29 +0200
commitac6ffd2a99578398ca611f9d20b127274ae7fe2d (patch)
treec47214e4ef0c61f71d05ff94cefa7eb71bfdfb3b
parent10cf2b24e6554da98a320842b700798dd58cb149 (diff)
downloadprosody-ac6ffd2a99578398ca611f9d20b127274ae7fe2d.tar.gz
prosody-ac6ffd2a99578398ca611f9d20b127274ae7fe2d.zip
sessionmanager: Log top tag of outgoing stanzas on c2s (#776)
-rw-r--r--core/sessionmanager.lua1
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