# HG changeset patch # User Kim Alvefur # Date 1562880421 -7200 # Node ID ee85cea08127ba8253019a29fe04bdcf29755239 # Parent 5f58a81c7dcc4472821126679fb7c4601fd5e313 mod_mam: Log query failure reason The storage engine will usually make a lot of noise for serious errors, but not always. diff -r 5f58a81c7dcc -r ee85cea08127 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:31:51 2019 +0200 +++ b/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:27:01 2019 +0200 @@ -143,6 +143,7 @@ }); 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