From 26d454db2dd49fbc0188765eaf973c820eb0e8ef Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:09:11 +0100 Subject: [PATCH] 24.11.1 --- readme.md | 3 +++ src/HABApp/__version__.py | 2 +- src/HABApp/config/logging/config.py | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 09f9a751..d622771c 100644 --- a/readme.md +++ b/readme.md @@ -127,6 +127,9 @@ MyOpenhabRule() ``` # Changelog +#### 24.11.1 (2024-11-25) +Fixed an issue with the logging Queue + #### 24.11.0 (2024-11-22) This is a breaking change! diff --git a/src/HABApp/__version__.py b/src/HABApp/__version__.py index b44ffd9a..6d00aa28 100644 --- a/src/HABApp/__version__.py +++ b/src/HABApp/__version__.py @@ -10,4 +10,4 @@ # Development versions contain the DEV-COUNTER postfix: # - 24.01.0.DEV-1 -__version__ = '24.11.0-DEV-0' +__version__ = '24.11.1' diff --git a/src/HABApp/config/logging/config.py b/src/HABApp/config/logging/config.py index fdd2f3e6..e8622e2b 100644 --- a/src/HABApp/config/logging/config.py +++ b/src/HABApp/config/logging/config.py @@ -1,5 +1,6 @@ import logging import logging.config +import sys from pathlib import Path from queue import Queue from typing import Any @@ -131,9 +132,9 @@ def inject_queue_handler(handlers_cfg: dict, loggers_cfg: dict, log: BufferedLog for handler_name, buffered_handler_name in buffered_handlers.items(): # https://github.com/python/cpython/issues/124653 if PYTHON_313: - q: SimpleQueue = SimpleQueue() + q: SimpleQueue = SimpleQueue() if sys.version_info[:3] > (3, 13, 0) else Queue() elif PYTHON_312: - q = Queue() + q = SimpleQueue() if sys.version_info[:3] > (3, 12, 7) else Queue() else: q: SimpleQueue = SimpleQueue() handlers_cfg[buffered_handler_name] = {'class': 'logging.handlers.QueueHandler', 'queue': q}