aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-11 23:26:02 +0200
committerKim Alvefur <zash@zash.se>2019-07-11 23:26:02 +0200
commitf16711edf5cb9b0456a457ca55d42ad6d8500019 (patch)
treee78f1522beb1bdd2953d096f25075ecf42c6a68a /plugins/mod_mam
parent355ee5ab12cb9938c969abe970dbcf247f262758 (diff)
downloadprosody-f16711edf5cb9b0456a457ca55d42ad6d8500019.tar.gz
prosody-f16711edf5cb9b0456a457ca55d42ad6d8500019.zip
mod_mam: Use stanza id in log message as fallback if no query id
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 0c50bd2a..cc06b617 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -120,7 +120,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
module:log("debug", "Archive query by %s id=%s with=%s when=%s...%s",
origin.username,
- qid or "-",
+ qid or stanza.attr.id,
qwith or "*",
qstart and timestamp(qstart) or "",
qend and timestamp(qend) or "");