Mercurial > prosody-modules
changeset 2719:7568157bf998
mod_mam_muc: Add debug logging like in mod_mam
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Jun 2017 13:53:39 +0200 (2017-06-23) |
parents | 02d688ba7739 |
children | 454d038df9b4 |
files | mod_mam_muc/mod_mam_muc.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 13:51:23 2017 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 13:53:39 2017 +0200 @@ -203,6 +203,11 @@ qstart, qend = vstart, vend; end + module:log("debug", "Archive query id %s from %s until %s)", + tostring(qid), + qstart and timestamp(qstart) or "the dawn of time", + qend and timestamp(qend) or "now"); + -- RSM stuff local qset = rsm.get(query); local qmax = m_min(qset and qset.max or 20, 20);