Mercurial > prosody-modules
comparison 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 |
parents | 4e7aa32f58d9 |
children | 921c607617b0 |
comparison
equal
deleted
inserted
replaced
4583:bb8459c220c9 | 4584:f6f28ceff53a |
---|---|
228 }); | 228 }); |
229 end | 229 end |
230 | 230 |
231 queue[#queue+1] = cached_stanza; | 231 queue[#queue+1] = cached_stanza; |
232 if session.hibernating then | 232 if session.hibernating then |
233 session.log("debug", "hibernating, stanza queued"); | 233 session.log("debug", "hibernating since %s, stanza queued", datetime.datetime(session.hibernating)); |
234 module:fire_event("smacks-hibernation-stanza-queued", {origin = session, queue = queue, stanza = cached_stanza}); | 234 module:fire_event("smacks-hibernation-stanza-queued", {origin = session, queue = queue, stanza = cached_stanza}); |
235 return nil; | 235 return nil; |
236 end | 236 end |
237 request_ack_if_needed(session, false, "outgoing_stanza_filter", stanza); | 237 request_ack_if_needed(session, false, "outgoing_stanza_filter", stanza); |
238 end | 238 end |