From 67b6440d9ba5c66fc1f7e51df911540c33177138 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 19 Jan 2023 20:59:28 +0100 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_smacks.lua') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 23ac2b51..a4ff0444 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -500,6 +500,7 @@ module:hook("pre-resource-unbind", function (event) 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); -- cgit v1.2.3