mod_mam: Include username that performed query
authorKim Alvefur <zash@zash.se>
Thu, 11 Jul 2019 23:30:58 +0200
changeset 10076 128142990b2b
parent 10075 b36e2631203d
child 10077 9137c9ce8b52
mod_mam: Include username that performed query Not always easy to find from surrounding logs
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 "",