Changeset

8140:2bda04a7b4d4

mod_mam: Format timestamps in log message
author Kim Alvefur <zash@zash.se>
date Sun, 07 May 2017 20:23:29 +0200
parents 8139:4119cca64064
children 8141:03714861f8fc
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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);