aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
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
commitc866e400514617d4caca01d6ab86486509cd5eec (patch)
treec47214e4ef0c61f71d05ff94cefa7eb71bfdfb3b /core/sessionmanager.lua
parent759fe72f49e08114f36d880e60e64e77781e4c59 (diff)
downloadprosody-c866e400514617d4caca01d6ab86486509cd5eec.tar.gz
prosody-c866e400514617d4caca01d6ab86486509cd5eec.zip
sessionmanager: Log top tag of outgoing stanzas on c2s (#776)
Diffstat (limited to 'core/sessionmanager.lua')
-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