mod_smacks: Include reason for destroying session on hibernation timeout

To aid in debugging
This commit is contained in:
Kim Alvefur 2021-12-12 18:38:40 +01:00
parent 725bb0cb15
commit 283042d7c3

View file

@ -498,7 +498,7 @@ module:hook("pre-resource-unbind", function (event)
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