mod_smacks: Log something when hibernation starts
Will hopefully save future confusion about sessions being destroyed when
they are in fact not.
--- 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);