Software /
code /
prosody
Changeset
10077:c0702a1534cb
mod_mam: Log RSM parameters
Helps when trying to figure out why some queries fail, ie when paging
using an archive id that doesn't exist.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 11 Jul 2019 23:27:45 +0200 |
parents | 10076:ee85cea08127 |
children | 10078:44371850c6b0 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:27:01 2019 +0200 +++ b/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:27:45 2019 +0200 @@ -131,6 +131,9 @@ local reverse = qset and qset.before or false; local before, after = qset and qset.before, qset and qset.after; if type(before) ~= "string" then before = nil; end + if qset then + module:log("debug", "Archive query id=%s rsm=%q", qid or stanza.attr.id, qset); + end -- Load all the data! local data, err = archive:find(origin.username, {