aboutsummaryrefslogtreecommitdiffstats
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
commit355ee5ab12cb9938c969abe970dbcf247f262758 (patch)
tree06f8a563a318873d5767d4e355e542cdb3d55174
parent2f208d6021b741382ae25708d4cbbeba3f28eb00 (diff)
downloadprosody-355ee5ab12cb9938c969abe970dbcf247f262758.tar.gz
prosody-355ee5ab12cb9938c969abe970dbcf247f262758.zip
mod_mam: Include username that performed query
Not always easy to find from surrounding logs
-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 "",