comparison mod_mam_muc/mod_mam_muc.lua @ 2414:97b4229982f5

mod_mam_muc: Remove some debug logging
author Kim Alvefur <zash@zash.se>
date Sun, 04 Dec 2016 10:19:07 +0100
parents 24c9c0255235
children deedb77c4f96
comparison
equal deleted inserted replaced
2413:b64c0150d663 2414:97b4229982f5
289 limit = m_min(maxstanzas or 20, max_history_length); 289 limit = m_min(maxstanzas or 20, max_history_length);
290 start = since; 290 start = since;
291 reverse = true; 291 reverse = true;
292 with = "message<groupchat"; 292 with = "message<groupchat";
293 } 293 }
294 module:log("debug", require"util.serialization".serialize(query))
295 local data, err = archive:find(jid_split(room_jid), query); 294 local data, err = archive:find(jid_split(room_jid), query);
296 295
297 if not data then 296 if not data then
298 module:log("error", "Could not fetch history: %s", tostring(err)); 297 module:log("error", "Could not fetch history: %s", tostring(err));
299 return 298 return
358 local room = jid_split(self.jid); 357 local room = jid_split(self.jid);
359 358
360 -- Policy check 359 -- Policy check
361 if not logging_enabled(self) then return end -- Don't log 360 if not logging_enabled(self) then return end -- Don't log
362 361
363 module:log("debug", "We're logging this")
364 -- And stash it 362 -- And stash it
365 local with = stanza.name 363 local with = stanza.name
366 if stanza.attr.type then 364 if stanza.attr.type then
367 with = with .. "<" .. stanza.attr.type 365 with = with .. "<" .. stanza.attr.type
368 end 366 end