aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitb396fc61d55211c7ebd43b90677a2b5c24302bd7 (patch)
treee78f1522beb1bdd2953d096f25075ecf42c6a68a /plugins
parent219d20f1ba270123c0f739fa2e5f10b3af6b61a3 (diff)
downloadprosody-b396fc61d55211c7ebd43b90677a2b5c24302bd7.tar.gz
prosody-b396fc61d55211c7ebd43b90677a2b5c24302bd7.zip
mod_mam: Use stanza id in log message as fallback if no query id
Diffstat (limited to 'plugins')
-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 "");