From 45515798620dd31c9d84174b1115e908578e9ec1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 5 Mar 2024 12:58:57 +0100 Subject: [PATCH] Fix setting SDK log level on startup (#617) --- matter_server/server/stack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matter_server/server/stack.py b/matter_server/server/stack.py index 5a4ebcb9..e4e63ac0 100644 --- a/matter_server/server/stack.py +++ b/matter_server/server/stack.py @@ -60,6 +60,7 @@ def init_logging(category: str) -> None: """Initialize Matter SDK logging. Filter by category.""" _LOGGER.info("Initializing CHIP/Matter Logging...") + global _category_num # pylint: disable=global-statement # noqa: PLW0603 _category_num = ERROR_CATEGORY_NONE if category == "ERROR": _category_num = ERROR_CATEGORY_ERROR