changeset 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
parents bb8459c220c9
children 05c74210c007
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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