# HG changeset patch # User Kim Alvefur # Date 1653585841 -7200 # Node ID dd5ab9a6b5996ea5f8673ae8211412f5165eb522 # Parent d2177cb5a76681d915bce1cd366257337540aaa7 mod_smacks: Remove debug log references to timer (not used anymore) Cuts down on noise as well diff -r d2177cb5a766 -r dd5ab9a6b599 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Thu May 26 17:48:59 2022 +0200 +++ b/plugins/mod_smacks.lua Thu May 26 19:24:01 2022 +0200 @@ -173,13 +173,12 @@ local function request_ack(session, reason) local queue = session.outgoing_stanza_queue; - session.log("debug", "Sending (inside timer, before send) from %s - #queue=%d", reason, queue:count_unacked()); + session.log("debug", "Sending from %s - #queue=%d", reason, queue:count_unacked()); (session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks })) if session.destroyed then return end -- sending something can trigger destruction session.awaiting_ack = true; -- expected_h could be lower than this expression e.g. more stanzas added to the queue meanwhile) session.last_requested_h = queue:count_acked() + queue:count_unacked(); - session.log("debug", "Sending (inside timer, after send) from %s - #queue=%d", reason, queue:count_unacked()); if not session.delayed_ack_timer then session.delayed_ack_timer = timer.add_task(delayed_ack_timeout, function() ack_delayed(session, nil); -- we don't know if this is the only new stanza in the queue