Skip to content

Commit 2fdbaf5

Browse files
authored
Set a python log redirect for python testing, so all logs are available even on darwin (project-chip#30494)
1 parent 1ada682 commit 2fdbaf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python_testing/matter_testing_support.py

+2
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ def _init_stack(self, already_initialized: bool, **kwargs):
443443
self._chip_stack = ChipStack(**kwargs)
444444
builtins.chipStack = self._chip_stack
445445

446+
chip.logging.RedirectToPythonLogging()
447+
446448
self._storage = self._chip_stack.GetStorageManager()
447449
self._certificate_authority_manager = chip.CertificateAuthority.CertificateAuthorityManager(chipStack=self._chip_stack)
448450
self._certificate_authority_manager.LoadAuthoritiesFromStorage()

0 commit comments

Comments
 (0)