aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-11 23:27:01 +0200
committerKim Alvefur <zash@zash.se>2019-07-11 23:27:01 +0200
commit006983308dd9300755cf992b2699d73744033a42 (patch)
tree3f5b4bcd65e1e6a5e8f7d11106fc0f8544474e8f /plugins/mod_mam
parent460efc6b3e2713183e1f3e1fdd0018b90c08c83f (diff)
downloadprosody-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.
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua1
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