mod_smacks: Include reason for destroying session on hibernation timeout
authorKim Alvefur <zash@zash.se>
Sun, 12 Dec 2021 18:38:40 +0100
changeset 12042 4e54334febc1
parent 12041 82f6a0b0a425
child 12043 e0a8c5b1ab4f
mod_smacks: Include reason for destroying session on hibernation timeout To aid in debugging
plugins/mod_smacks.lua
--- 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