Comparison

mod_smacks/mod_smacks.lua @ 3150:14b6ad2b773f

mod_smacks: Reduce unacked stanza log message from warn->debug
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 Jun 2018 15:30:03 +0100
parent 3110:06e07b483805
child 3218:67f1d1f22625
comparison
equal deleted inserted replaced
3149:ccbfe7df02dc 3150:14b6ad2b773f
392 local session, err = event.session, event.error; 392 local session, err = event.session, event.error;
393 if session.smacks then 393 if session.smacks then
394 if not session.resumption_token then 394 if not session.resumption_token then
395 local queue = session.outgoing_stanza_queue; 395 local queue = session.outgoing_stanza_queue;
396 if #queue > 0 then 396 if #queue > 0 then
397 session.log("warn", "Destroying session with %d unacked stanzas", #queue); 397 session.log("debug", "Destroying session with %d unacked stanzas", #queue);
398 handle_unacked_stanzas(session); 398 handle_unacked_stanzas(session);
399 end 399 end
400 else 400 else
401 session.log("debug", "mod_smacks hibernating session for up to %d seconds", resume_timeout); 401 session.log("debug", "mod_smacks hibernating session for up to %d seconds", resume_timeout);
402 local hibernate_time = os_time(); -- Track the time we went into hibernation 402 local hibernate_time = os_time(); -- Track the time we went into hibernation