# HG changeset patch # User Kim Alvefur # Date 1532452046 -7200 # Node ID f3adcc3fce8cf92bfb5a53da175f9d2cc21ec525 # Parent 93ac83372ac2bb3497e3ece701e6ce92284ea70c sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming diff -r 93ac83372ac2 -r f3adcc3fce8c core/sessionmanager.lua --- a/core/sessionmanager.lua Sun Jul 22 19:45:58 2018 +0200 +++ b/core/sessionmanager.lua Tue Jul 24 19:07:26 2018 +0200 @@ -33,7 +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("^[^>]*>?")); + 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 -r 93ac83372ac2 -r f3adcc3fce8c plugins/mod_s2s/mod_s2s.lua --- 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 @@ -571,7 +571,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