From 15de51f8c507f8d0f2c18d22a601aec60cf461b8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 24 Jul 2018 19:07:26 +0200 Subject: sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming --- core/sessionmanager.lua | 2 +- plugins/mod_s2s/mod_s2s.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 429ec776..2843001a 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -33,7 +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("^[^>]*>?")); + 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 diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index ddc49134..70b8d329 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -571,7 +571,7 @@ local function initialize_session(session) 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 -- cgit v1.2.3