Removed fixed size on logging queue

If the logging queue gets full, due to a maxsize being set,
then any further logs will result on lots of errors being dumped
to stderr as the queue is full.
This commit is contained in:
Hemna 2021-09-07 13:43:48 -04:00
parent d6b3df93f1
commit 9eff99dde7
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ RX_THREAD = "RX"
EMAIL_THREAD = "Email"
rx_msg_queue = queue.Queue(maxsize=20)
logging_queue = queue.Queue(maxsize=50)
logging_queue = queue.Queue()
msg_queues = {
"rx": rx_msg_queue,
}
@ -374,6 +374,7 @@ class KISSRXThread(APRSDThread):
frame.header._source._ch = False
payload = str(frame.payload.decode())
msg = f"{str(frame.header)}:{payload}"
# msg = frame.tnc2
LOG.debug(f"Decoding {msg}")
packet = aprslib.parse(msg)