mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-03 14:02:26 -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
|
sent = False
|
||||||
try:
|
try:
|
||||||
sent = _send_direct(packet)
|
sent = _send_direct(packet)
|
||||||
except Exception:
|
except Exception as ex:
|
||||||
LOG.error(f'Failed to send packet: {packet}')
|
LOG.error(f'Failed to send packet: {packet}')
|
||||||
|
LOG.error(ex)
|
||||||
else:
|
else:
|
||||||
# If an exception happens while sending
|
# If an exception happens while sending
|
||||||
# we don't want this attempt to count
|
# we don't want this attempt to count
|
||||||
|
Loading…
x
Reference in New Issue
Block a user