aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-24 15:11:01 +0200
committerKim Alvefur <zash@zash.se>2021-10-24 15:11:01 +0200
commit94d9ba7ce14ebd30975f893e37e0defb0aeb080f (patch)
treefd3aa342549c94ab57ca5af779176e0adb23ed19 /plugins/mod_s2s.lua
parentc5de2a9d22f1bd14eb56c2fb0e5bfc09b3451538 (diff)
downloadprosody-94d9ba7ce14ebd30975f893e37e0defb0aeb080f.tar.gz
prosody-94d9ba7ce14ebd30975f893e37e0defb0aeb080f.zip
mod_s2s: Fix logging of <stream:error> consistency with other mods
`reason` was often a table, so the log said "table: 0xptr" or such. mod_c2s, mod_bosh etc logs the stream error stanza object, so better do the same. It would be nicer if this was an util.error object, but that will have to be a future change.
Diffstat (limited to 'plugins/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index 71dcd358..7b915194 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -650,7 +650,7 @@ local function session_close(session, reason, remote_reason, bounce_reason)
if st.is_stanza(stream_error) then
-- to and from are never unknown on outgoing connections
log("debug", "Disconnecting %s->%s[%s], <stream:error> is: %s",
- session.from_host or "(unknown host)" or session.ip, session.to_host or "(unknown host)", session.type, reason);
+ session.from_host or "(unknown host)" or session.ip, session.to_host or "(unknown host)", session.type, stream_error);
session.sends2s(stream_error);
end
else