Changeset

9062:1b272b51ae0f

sessionmanager: Log top tag of outgoing stanzas on c2s (#776)
author Kim Alvefur <zash@zash.se>
date Sun, 22 Jul 2018 19:41:29 +0200
parents 9061:82dd435c942c
children 9063:f2a5d8eb04b3
files core/sessionmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Sun Jul 29 18:34:38 2018 +0200
+++ b/core/sessionmanager.lua	Sun Jul 22 19:41:29 2018 +0200
@@ -33,6 +33,7 @@
 	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