aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-11 12:41:32 +0200
committerKim Alvefur <zash@zash.se>2021-07-11 12:41:32 +0200
commitca51cdad381f87a3b76ed216e6751cd18db0c25a (patch)
tree9556b48a5ec92ecc2b894d7f8f4d75a01c02007e
parentaf9ecb24b8d4dff2dd44f9d8c222cf82d518a752 (diff)
downloadprosody-ca51cdad381f87a3b76ed216e6751cd18db0c25a.tar.gz
prosody-ca51cdad381f87a3b76ed216e6751cd18db0c25a.zip
mod_s2s: Log debug message on attempted close of an connectionless session
This should probably never happen, but probably does anyways. A debug message would show the truth of the matter.
-rw-r--r--plugins/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index a9d8745c..217797df 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -553,6 +553,7 @@ local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'};
local function session_close(session, reason, remote_reason, bounce_reason)
local log = session.log or log;
if not session.conn then
+ log("debug", "Attempt to close without associated connection with reason %q", reason);
return
end