aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-11 23:30:58 +0200
committerKim Alvefur <zash@zash.se>2019-07-11 23:30:58 +0200
commit219d20f1ba270123c0f739fa2e5f10b3af6b61a3 (patch)
tree06f8a563a318873d5767d4e355e542cdb3d55174 /plugins
parent6ab914c24a5bc606f13f69cd5d358074e0e1f788 (diff)
downloadprosody-219d20f1ba270123c0f739fa2e5f10b3af6b61a3.tar.gz
prosody-219d20f1ba270123c0f739fa2e5f10b3af6b61a3.zip
mod_mam: Include username that performed query
Not always easy to find from surrounding logs
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mam/mod_mam.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 0b3b0b82..0c50bd2a 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -118,7 +118,8 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
qstart, qend = vstart, vend;
end
- module:log("debug", "Archive query id=%s with=%s when=%s...%s",
+ module:log("debug", "Archive query by %s id=%s with=%s when=%s...%s",
+ origin.username,
qid or "-",
qwith or "*",
qstart and timestamp(qstart) or "",