aboutsummaryrefslogtreecommitdiffstats
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
commit7e9e7b764e8c141aed692ee140edab4589a462ae (patch)
tree3f5b4bcd65e1e6a5e8f7d11106fc0f8544474e8f
parentaa07a1cbe1d2454f8cc5d5d0570c1b167c53ea70 (diff)
downloadprosody-7e9e7b764e8c141aed692ee140edab4589a462ae.tar.gz
prosody-7e9e7b764e8c141aed692ee140edab4589a462ae.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.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