Comparison

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
comparison
equal deleted inserted replaced
10074:a1081443666c 10075:5f58a81c7dcc
195 end 195 end
196 first, last = last, first; 196 first, last = last, first;
197 end 197 end
198 198
199 -- That's all folks! 199 -- That's all folks!
200 module:log("debug", "Archive query id=%s completed", qid or stanza.attr.id); 200 module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results);
201 201
202 origin.send(st.reply(stanza) 202 origin.send(st.reply(stanza)
203 :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) 203 :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete })
204 :add_child(rsm.generate { 204 :add_child(rsm.generate {
205 first = first, last = last, count = total })); 205 first = first, last = last, count = total }));