Fix issues with overrunning console log buffer

pyqt6
Mark Jessop 2024-01-29 10:32:16 +10:30
rodzic 27c98174a0
commit ab470cb7c5
3 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1 +1 @@
__version__ = "0.3.14"
__version__ = "0.3.15"

Wyświetl plik

@ -76,7 +76,8 @@ def read_config(widgets):
""" Read in configuration settings from Qt """
global qt_settings, default_config
OK_VERSIONS = [__version__, '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']
# This is getting a bit ridiculous, need to re-think this approach.
OK_VERSIONS = [__version__, '0.3.14', '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']
# Try and read in the version parameter from QSettings
if qt_settings.value("version") not in OK_VERSIONS:

Wyświetl plik

@ -53,9 +53,9 @@ DEFAULT_ESTIMATOR_MAX = 4000
widgets = {}
# Queues for handling updates to image / status indications.
fft_update_queue = Queue(256)
status_update_queue = Queue(256)
log_update_queue = Queue(256)
fft_update_queue = Queue(1024)
status_update_queue = Queue(1024)
log_update_queue = Queue(2048)
# List of audio devices and their info
audio_devices = {}
@ -1341,7 +1341,7 @@ class ConsoleHandler(logging.Handler):
try:
self.log_queue.put_nowait(_text)
except:
print("Queue full!")
print("Console Log Queue full!")