mod_mam_muc: Add debug logging like in mod_mam

Fri, 23 Jun 2017 13:53:39 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 23 Jun 2017 13:53:39 +0200
changeset 2719
7568157bf998
parent 2718
02d688ba7739
child 2720
454d038df9b4

mod_mam_muc: Add debug logging like in mod_mam

mod_mam_muc/mod_mam_muc.lua file | annotate | diff | comparison | revisions
--- 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);

mercurial