diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-11 23:27:45 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-11 23:27:45 +0200 |
commit | c8528f9004a6053ad1a999e2ecc90d07267d5abd (patch) | |
tree | 1bdcc38e311532540188170229736ee2636fc73c /plugins | |
parent | 006983308dd9300755cf992b2699d73744033a42 (diff) | |
download | prosody-c8528f9004a6053ad1a999e2ecc90d07267d5abd.tar.gz prosody-c8528f9004a6053ad1a999e2ecc90d07267d5abd.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index a3bf9c42..82bc6b5f 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -131,6 +131,9 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) 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, { |