Changeset

9069:22e5f11c778a

sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming
author Kim Alvefur <zash@zash.se>
date Tue, 24 Jul 2018 19:07:26 +0200
parents 9068:95ee62b5afef
children 9070:21730a3642fe 9278:8f9e18d4fe50
files core/sessionmanager.lua plugins/mod_s2s/mod_s2s.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Sun Jul 22 19:45:58 2018 +0200
+++ b/core/sessionmanager.lua	Tue Jul 24 19:07:26 2018 +0200
@@ -32,7 +32,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("^[^>]*>?"));
+		session.log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
 		if t.name then
 			t = filter("stanzas/out", t);
 		end
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Jul 22 19:45:58 2018 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Tue Jul 24 19:07:26 2018 +0200
@@ -541,7 +541,7 @@
 	local w = conn.write;
 
 	function session.sends2s(t)
-		log("debug", "sending: %s", t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
+		log("debug", "Sending[%s]: %s", session.type, t.top_tag and t:top_tag() or t:match("^[^>]*>?"));
 		if t.name then
 			t = filter("stanzas/out", t);
 		end