Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10072:128142990b2b
mod_mam: Include username that performed query
Not always easy to find from surrounding logs
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 11 Jul 2019 23:30:58 +0200 |
parent | 10071:b36e2631203d |
child | 10073:9137c9ce8b52 |
comparison
equal
deleted
inserted
replaced
10071:b36e2631203d | 10072:128142990b2b |
---|---|
116 return true; | 116 return true; |
117 end | 117 end |
118 qstart, qend = vstart, vend; | 118 qstart, qend = vstart, vend; |
119 end | 119 end |
120 | 120 |
121 module:log("debug", "Archive query id=%s with=%s when=%s...%s", | 121 module:log("debug", "Archive query by %s id=%s with=%s when=%s...%s", |
122 origin.username, | |
122 qid or "-", | 123 qid or "-", |
123 qwith or "*", | 124 qwith or "*", |
124 qstart and timestamp(qstart) or "", | 125 qstart and timestamp(qstart) or "", |
125 qend and timestamp(qend) or ""); | 126 qend and timestamp(qend) or ""); |
126 | 127 |