mod_s2s: Log debug message on attempted close of an connectionless session
authorKim Alvefur <zash@zash.se>
Sun, 11 Jul 2021 12:41:32 +0200
changeset 11674 7f6c816a2c09
parent 11673 bca75f34d374
child 11675 4e4e26e3df8d
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.
plugins/mod_s2s.lua
--- a/plugins/mod_s2s.lua	Sun Jul 11 12:37:51 2021 +0200
+++ b/plugins/mod_s2s.lua	Sun Jul 11 12:41:32 2021 +0200
@@ -553,6 +553,7 @@
 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