Diff

plugins/mod_mam/mod_mam.lua @ 8140:2bda04a7b4d4

mod_mam: Format timestamps in log message
author Kim Alvefur <zash@zash.se>
date Sun, 07 May 2017 20:23:29 +0200
parent 8137:484ea6201c6c
child 8149:1dc6efcc420a
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Sun May 07 16:31:48 2017 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Sun May 07 20:23:29 2017 +0200
@@ -123,7 +123,9 @@
 	end
 
 	module:log("debug", "Archive query, id %s with %s from %s until %s)",
-		tostring(qid), qwith or "anyone", qstart or "the dawn of time", qend or "now");
+		tostring(qid), qwith or "anyone",
+		qstart and timestamp(qstart) or "the dawn of time",
+		qend and timestamp(qend) or "now");
 
 	-- RSM stuff
 	local qset = rsm.get(query);