Diff

plugins/mod_mam/mod_mam.lua @ 10075:5f58a81c7dcc

mod_mam: Log more details in final log message Saves you from counting messages sent
author Kim Alvefur <zash@zash.se>
date Thu, 11 Jul 2019 23:31:51 +0200
parent 10074:a1081443666c
child 10076:ee85cea08127
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Thu Jul 11 23:31:13 2019 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Thu Jul 11 23:31:51 2019 +0200
@@ -197,7 +197,7 @@
 	end
 
 	-- That's all folks!
-	module:log("debug", "Archive query id=%s completed", qid or stanza.attr.id);
+	module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results);
 
 	origin.send(st.reply(stanza)
 		:tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete })