mirror of
https://github.com/craigerl/aprsd.git
synced 2025-07-29 20:02:27 -04:00
log the exception when tx fails.
If _send_direct fails, we log the exception so we can find out why it failed to send.
This commit is contained in:
parent
74887af507
commit
fa5d0c643a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user