Mercurial > prosody-modules
comparison mod_mam_muc/mod_mam_muc.lua @ 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 |
parents | 02d688ba7739 |
children | 454d038df9b4 |
comparison
equal
deleted
inserted
replaced
2718:02d688ba7739 | 2719:7568157bf998 |
---|---|
201 return true; | 201 return true; |
202 end | 202 end |
203 qstart, qend = vstart, vend; | 203 qstart, qend = vstart, vend; |
204 end | 204 end |
205 | 205 |
206 module:log("debug", "Archive query id %s from %s until %s)", | |
207 tostring(qid), | |
208 qstart and timestamp(qstart) or "the dawn of time", | |
209 qend and timestamp(qend) or "now"); | |
210 | |
206 -- RSM stuff | 211 -- RSM stuff |
207 local qset = rsm.get(query); | 212 local qset = rsm.get(query); |
208 local qmax = m_min(qset and qset.max or 20, 20); | 213 local qmax = m_min(qset and qset.max or 20, 20); |
209 local reverse = qset and qset.before or false; | 214 local reverse = qset and qset.before or false; |
210 | 215 |