diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-11 23:27:01 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-11 23:27:01 +0200 |
commit | 006983308dd9300755cf992b2699d73744033a42 (patch) | |
tree | 3f5b4bcd65e1e6a5e8f7d11106fc0f8544474e8f | |
parent | 460efc6b3e2713183e1f3e1fdd0018b90c08c83f (diff) | |
download | prosody-006983308dd9300755cf992b2699d73744033a42.tar.gz prosody-006983308dd9300755cf992b2699d73744033a42.zip |
mod_mam: Log query failure reason
The storage engine will usually make a lot of noise for serious errors,
but not always.
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 613d045a..a3bf9c42 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -143,6 +143,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) }); if not data then + module:log("debug", "Archive query id=%s failed: %s", qid or stanza.attr.id, err); if err == "item-not-found" then origin.send(st.error_reply(stanza, "modify", "item-not-found")); else |