Comparison

mod_smacks/mod_smacks.lua @ 1293:ddbc1eb8d431

mod_smacks: Remove logging of unacked stanzas
author Matthew Wild <mwild1@gmail.com>
date Thu, 30 Jan 2014 13:39:24 +0000
parent 1024:d7655e634c30
child 1298:659da45a2b4b
comparison
equal deleted inserted replaced
1292:2d061333d0c2 1293:ddbc1eb8d431
219 local session, err = event.session, event.error; 219 local session, err = event.session, event.error;
220 if session.smacks then 220 if session.smacks then
221 if not session.resumption_token then 221 if not session.resumption_token then
222 local queue = session.outgoing_stanza_queue; 222 local queue = session.outgoing_stanza_queue;
223 if #queue > 0 then 223 if #queue > 0 then
224 module:log("warn", "Destroying session with %d unacked stanzas:", #queue); 224 module:log("warn", "Destroying session with %d unacked stanzas", #queue);
225 for i=1,#queue do
226 module:log("warn", "::%s", tostring(queue[i]));
227 end
228 handle_unacked_stanzas(session); 225 handle_unacked_stanzas(session);
229 end 226 end
230 else 227 else
231 session.log("debug", "mod_smacks hibernating session for up to %d seconds", resume_timeout); 228 session.log("debug", "mod_smacks hibernating session for up to %d seconds", resume_timeout);
232 local hibernate_time = os_time(); -- Track the time we went into hibernation 229 local hibernate_time = os_time(); -- Track the time we went into hibernation