aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/src/lib/logging.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 15:33:27 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 15:33:27 +0200
commitb1d66075b13c40606bb2d0bd8f90275b8f2e8abb (patch)
tree95d5a5ef6b9e452fae3932699834930f1895cee9 /test/src/lib/logging.py
parentworkflows/ci: add Python linting (diff)
downloadcimple-b1d66075b13c40606bb2d0bd8f90275b8f2e8abb.tar.gz
cimple-b1d66075b13c40606bb2d0bd8f90275b8f2e8abb.zip
workflows/ci: use default Black settings
Diffstat (limited to 'test/src/lib/logging.py')
-rw-r--r--test/src/lib/logging.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/src/lib/logging.py b/test/src/lib/logging.py
index 663eb3a..aed0eeb 100644
--- a/test/src/lib/logging.py
+++ b/test/src/lib/logging.py
@@ -13,7 +13,7 @@ import multiprocessing as mp
@contextmanager
def child_logging_thread():
# Delegating logging to the parent logger.
- ctx = mp.get_context('spawn')
+ ctx = mp.get_context("spawn")
queue = ctx.Queue()
listener = logging.handlers.QueueListener(queue, logging.getLogger())
listener.start()
@@ -26,16 +26,16 @@ def child_logging_thread():
@contextmanager
def configure_logging_in_child(queue):
config = {
- 'version': 1,
- 'handlers': {
- 'sink': {
- 'class': 'logging.handlers.QueueHandler',
- 'queue': queue,
+ "version": 1,
+ "handlers": {
+ "sink": {
+ "class": "logging.handlers.QueueHandler",
+ "queue": queue,
},
},
- 'root': {
- 'handlers': ['sink'],
- 'level': 'DEBUG',
+ "root": {
+ "handlers": ["sink"],
+ "level": "DEBUG",
},
}
logging.config.dictConfig(config)