aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-24 19:07:26 +0200
committerKim Alvefur <zash@zash.se>2018-07-24 19:07:26 +0200
commite59fdc42ed4f003adf01759e6d9e030a41305467 (patch)
tree2c1c2f4eaee6f4cc867fd0eea12d5603d7adc3a9
parentc2d1ea2b041c913393b1312faf8518256d33d1c2 (diff)
downloadprosody-e59fdc42ed4f003adf01759e6d9e030a41305467.tar.gz
prosody-e59fdc42ed4f003adf01759e6d9e030a41305467.zip
sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming
-rw-r--r--core/sessionmanager.lua2
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index ac387021..bdaafcb6 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -32,7 +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("^[^>]*>?"));
+ 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 f182df52..0857f08e 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -541,7 +541,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