Skip to content

Commit

Permalink
24.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Nov 25, 2024
1 parent eadb52c commit 26d454d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
2 changes: 1 addition & 1 deletion src/HABApp/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
5 changes: 3 additions & 2 deletions src/HABApp/config/logging/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import logging.config
import sys
from pathlib import Path
from queue import Queue
from typing import Any
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 26d454d

Please sign in to comment.