aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-11 23:22:59 +0200
committerKim Alvefur <zash@zash.se>2019-07-11 23:22:59 +0200
commit6ab914c24a5bc606f13f69cd5d358074e0e1f788 (patch)
tree8887222e63113ef68d451223a1960489cb63cbbd
parent7860ab4b12a1cc13cdb5fc736cfa08f800f87890 (diff)
downloadprosody-6ab914c24a5bc606f13f69cd5d358074e0e1f788.tar.gz
prosody-6ab914c24a5bc606f13f69cd5d358074e0e1f788.zip
mod_mam: Make log message more compact
-rw-r--r--plugins/mod_mam/mod_mam.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 4e0cf531..0b3b0b82 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -118,10 +118,11 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
qstart, qend = vstart, vend;
end
- module:log("debug", "Archive query, id %s with %s from %s until %s",
- tostring(qid), qwith or "anyone",
- qstart and timestamp(qstart) or "the dawn of time",
- qend and timestamp(qend) or "now");
+ module:log("debug", "Archive query id=%s with=%s when=%s...%s",
+ qid or "-",
+ qwith or "*",
+ qstart and timestamp(qstart) or "",
+ qend and timestamp(qend) or "");
-- RSM stuff
local qset = rsm.get(query);