From 1009008d473c1eb679c76748b6a3198495e1a850 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 15 Nov 2023 13:07:49 -0500 Subject: [PATCH] Set a python log redirect for python testing, so all logs are available even on darwin (#30494) --- src/python_testing/matter_testing_support.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index 759e6cdf377366..1b3fab9b8c8a3e 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -443,6 +443,8 @@ def _init_stack(self, already_initialized: bool, **kwargs): self._chip_stack = ChipStack(**kwargs) builtins.chipStack = self._chip_stack + chip.logging.RedirectToPythonLogging() + self._storage = self._chip_stack.GetStorageManager() self._certificate_authority_manager = chip.CertificateAuthority.CertificateAuthorityManager(chipStack=self._chip_stack) self._certificate_authority_manager.LoadAuthoritiesFromStorage()