(self, *args, **kwargs)
| 69 | |
| 70 | class MitmLogHandler(logging.Handler): |
| 71 | def __init__(self, *args, **kwargs): |
| 72 | super().__init__(*args, **kwargs) |
| 73 | self._initiated_in_test = os.environ.get("PYTEST_CURRENT_TEST") |
| 74 | |
| 75 | def filter(self, record: logging.LogRecord) -> bool: |
| 76 | # We can't remove stale handlers here because that would modify .handlers during iteration! |