Skip to content

Commit

Permalink
Set a python log redirect for python testing, so all logs are availab…
Browse files Browse the repository at this point in the history
…le even on darwin (#30494)
  • Loading branch information
andy31415 authored and pull[bot] committed Dec 11, 2023
1 parent 808e0e6 commit 1009008
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1009008

Please sign in to comment.