mod_smacks: Include reason for destroying session on hibernation timeout
To aid in debugging
--- a/plugins/mod_smacks.lua Sat Dec 11 20:58:09 2021 +0100
+++ b/plugins/mod_smacks.lua Sun Dec 12 18:38:40 2021 +0100
@@ -498,7 +498,7 @@
h = session.handled_stanza_count,
});
session.resumption_token = nil;
- sessionmanager.destroy_session(session);
+ sessionmanager.destroy_session(session, "Hibernating too long");
else
session.log("debug", "Session resumed before hibernation timeout, all is well")
end