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 | f218adca6982d00fa3995d2f97ed7a1945f09954 (patch) | |
tree | 1bdcc38e311532540188170229736ee2636fc73c | |
parent | 7e9e7b764e8c141aed692ee140edab4589a462ae (diff) | |
download | prosody-f218adca6982d00fa3995d2f97ed7a1945f09954.tar.gz prosody-f218adca6982d00fa3995d2f97ed7a1945f09954.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.
-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, { |