mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_mam: Format timestamps in log message
This commit is contained in:
parent
e863b13420
commit
49655b2234
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue