MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/log.py:71–73  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

69
70class 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!

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected