# HG changeset patch # User Kim Alvefur # Date 1674158368 -3600 # Node ID 101c758428aa7f6b3b5b60bd9a0e12345702c1b3 # Parent 3edd39c55a8aa03d35ea8845b0d8cb1e7cba1a5e mod_smacks: Log something when hibernation starts Will hopefully save future confusion about sessions being destroyed when they are in fact not. diff -r 3edd39c55a8a -r 101c758428aa 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);