aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
commit2ae76ad96e18553a8a0b5d22eb3ae4971fa6c189 (patch)
treed89681980832f208a76709871c45afc3cc1beda6 /core
parent56130876eb64bcaf62c71babfa34888ba5364f43 (diff)
downloadprosody-2ae76ad96e18553a8a0b5d22eb3ae4971fa6c189.tar.gz
prosody-2ae76ad96e18553a8a0b5d22eb3ae4971fa6c189.zip
sessionmanager: Log top tag of outgoing stanzas on c2s (#776)
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 2b429df9..429ec776 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -33,6 +33,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