Diff

mod_smacks/mod_smacks.lua @ 4584:f6f28ceff53a

mod_smacks: Include timestamp in hibernation log message So that I will never have to wonder "how long? since when" ever again.
author Kim Alvefur <zash@zash.se>
date Mon, 07 Jun 2021 19:15:28 +0200
parent 4539:4e7aa32f58d9
child 4631:921c607617b0
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Sat Jun 05 16:23:21 2021 +0100
+++ b/mod_smacks/mod_smacks.lua	Mon Jun 07 19:15:28 2021 +0200
@@ -230,7 +230,7 @@
 
 		queue[#queue+1] = cached_stanza;
 		if session.hibernating then
-			session.log("debug", "hibernating, stanza queued");
+			session.log("debug", "hibernating since %s, stanza queued", datetime.datetime(session.hibernating));
 			module:fire_event("smacks-hibernation-stanza-queued", {origin = session, queue = queue, stanza = cached_stanza});
 			return nil;
 		end