aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-05-07 20:23:29 +0200
committerKim Alvefur <zash@zash.se>2017-05-07 20:23:29 +0200
commitb22d611eee2b46556bdf4578d6cd9e7601f43900 (patch)
tree068fb1a035df190c68f42adb0c15ec60c4ff0348 /plugins/mod_mam/mod_mam.lua
parent2c442e20f75f41abea034601d7454e4a0d5ae79c (diff)
downloadprosody-b22d611eee2b46556bdf4578d6cd9e7601f43900.tar.gz
prosody-b22d611eee2b46556bdf4578d6cd9e7601f43900.zip
mod_mam: Format timestamps in log message
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index accb047b..4235fd59 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -123,7 +123,9 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
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);