mod_smacks: Log something when hibernation starts 0.12
authorKim Alvefur <zash@zash.se>
Thu, 19 Jan 2023 20:59:28 +0100
branch0.12
changeset 12854 101c758428aa
parent 12846 3edd39c55a8a
child 12855 ffa75a9ce907
child 12861 cc86d77481fc
mod_smacks: Log something when hibernation starts Will hopefully save future confusion about sessions being destroyed when they are in fact not.
plugins/mod_smacks.lua
--- a/plugins/mod_smacks.lua	Sat Jan 14 05:47:47 2023 +0100
+++ b/plugins/mod_smacks.lua	Thu Jan 19 20:59:28 2023 +0100
@@ -500,6 +500,7 @@
 		session.conn = nil;
 		conn:close();
 	end
+	session.log("debug", "Session going into hibernation (not being destroyed)")
 	module:fire_event("smacks-hibernation-start", { origin = session; queue = session.outgoing_stanza_queue:table() });
 	return true; -- Postpone destruction for now
 end);