MCPcopy
hub / github.com/mitmproxy/mitmproxy / __call__

Method __call__

mitmproxy/log.py:187–193  ·  view source on GitHub ↗
(self, text, level="info")

Source from the content-addressed store, hash-verified

185 logging.getLogger().error(txt)
186
187 def __call__(self, text, level="info"):
188 warnings.warn(
189 "mitmproxy's ctx.log() is deprecated. Please use the standard Python logging module instead.",
190 DeprecationWarning,
191 stacklevel=2,
192 )
193 logging.getLogger().log(level=logging.getLevelName(level.upper()), msg=text)
194
195
196LOGGING_LEVELS_TO_LOGENTRY = {

Callers

nothing calls this directly

Calls 2

warnMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected