diff options
author | Kim Alvefur <zash@zash.se> | 2023-01-19 20:59:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-01-19 20:59:28 +0100 |
commit | 67b6440d9ba5c66fc1f7e51df911540c33177138 (patch) | |
tree | 9f59d8ebcaae82a600f6c4bd7b3213bfd114051c | |
parent | c9fb0c2cab170724f8894bf036266d0366c99429 (diff) | |
download | prosody-67b6440d9ba5c66fc1f7e51df911540c33177138.tar.gz prosody-67b6440d9ba5c66fc1f7e51df911540c33177138.zip |
mod_smacks: Log something when hibernation starts
Will hopefully save future confusion about sessions being destroyed when
they are in fact not.
-rw-r--r-- | plugins/mod_smacks.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |