From fa5d0c643ae85fc9ad3f615f9d0afc590f422283 Mon Sep 17 00:00:00 2001 From: Walter Boring Date: Tue, 17 Jun 2025 22:22:09 -0400 Subject: [PATCH] log the exception when tx fails. If _send_direct fails, we log the exception so we can find out why it failed to send. --- aprsd/threads/tx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aprsd/threads/tx.py b/aprsd/threads/tx.py index 0421d76..ec232f0 100644 --- a/aprsd/threads/tx.py +++ b/aprsd/threads/tx.py @@ -157,8 +157,9 @@ class SendPacketThread(aprsd_threads.APRSDThread): sent = False try: sent = _send_direct(packet) - except Exception: + except Exception as ex: LOG.error(f'Failed to send packet: {packet}') + LOG.error(ex) else: # If an exception happens while sending # we don't want this attempt to count