Changeset

10076:ee85cea08127

mod_mam: Log query failure reason The storage engine will usually make a lot of noise for serious errors, but not always.
author Kim Alvefur <zash@zash.se>
date Thu, 11 Jul 2019 23:27:01 +0200
parents 10075:5f58a81c7dcc
children 10077:c0702a1534cb
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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