# HG changeset patch # User Kim Alvefur # Date 1562880658 -7200 # Node ID 128142990b2bc14e60136e329267056183906b64 # Parent b36e2631203d79eddcac2be8f59d0333deae8156 mod_mam: Include username that performed query Not always easy to find from surrounding logs diff -r b36e2631203d -r 128142990b2b plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:22:59 2019 +0200 +++ b/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:30:58 2019 +0200 @@ -118,7 +118,8 @@ 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 "",