MCPcopy
hub / github.com/mitmproxy/mitmproxy / log

Method log

mitmproxy/proxy/server.py:365–375  ·  view source on GitHub ↗
(
        self,
        message: str,
        level: int = logging.INFO,
        exc_info: Literal[True]
        | tuple[type[BaseException], BaseException, TracebackType | None]
        | None = None,
    )

Source from the content-addressed store, hash-verified

363 pass
364
365 def log(
366 self,
367 message: str,
368 level: int = logging.INFO,
369 exc_info: Literal[True]
370 | tuple[type[BaseException], BaseException, TracebackType | None]
371 | None = None,
372 ) -> None:
373 logger.log(
374 level, message, extra={"client": self.client.peername}, exc_info=exc_info
375 )
376
377 async def server_event(self, event: events.Event) -> None:
378 # server_event is supposed to be completely sync without any `await` that could pause execution.

Callers 15

handle_clientMethod · 0.95
open_connectionMethod · 0.95
on_timeoutMethod · 0.95
server_eventMethod · 0.95
close_connectionMethod · 0.95
alertMethod · 0.45
__call__Method · 0.45
grideditor_saveMethod · 0.45
DfClass · 0.45
advanceMethod · 0.45
advanceStackMethod · 0.45
runRecoveryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected