From 62bdaf100103870b250f19a3bfc639cd533e4d6d Mon Sep 17 00:00:00 2001 From: gluap Date: Tue, 9 Jan 2024 10:39:06 +0100 Subject: [PATCH] log when a message was not received --- pyduofern/__init__.py | 2 +- pyduofern/duofern_stick.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyduofern/__init__.py b/pyduofern/__init__.py index 5117437..c7ff4c5 100644 --- a/pyduofern/__init__.py +++ b/pyduofern/__init__.py @@ -21,7 +21,7 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -__version__ = "0.36.0" +__version__ = "0.36.1" __all__ = ['DuofernException', 'DuofernStick', 'DuofernStickAsync', 'duoACK'] diff --git a/pyduofern/duofern_stick.py b/pyduofern/duofern_stick.py index 5528526..f35a86f 100644 --- a/pyduofern/duofern_stick.py +++ b/pyduofern/duofern_stick.py @@ -650,6 +650,7 @@ def handle_resends(self): for k in self.unacknowledged.keys(): if self.unacknowledged[k].retries == 0: done.add(k) + logger.info(f"{self.unacknowledged[k]} was never acknowledged, gave up after 5 retries") elif self.unacknowledged[k].next < t: self.unacknowledged[k].next = t + datetime.timedelta(seconds=random.uniform(*RESEND_SECONDS)) self.unacknowledged[k].retries -= 1