MCPcopy
hub / github.com/mitmproxy/mitmproxy / warn

Method warn

mitmproxy/log.py:165–174  ·  view source on GitHub ↗

Log with level warn.

(self, txt)

Source from the content-addressed store, hash-verified

163 logging.getLogger().log(ALERT, txt)
164
165 def warn(self, txt):
166 """
167 Log with level warn.
168 """
169 warnings.warn(
170 "mitmproxy's ctx.log.warn() is deprecated. Please use the standard Python logging module instead.",
171 DeprecationWarning,
172 stacklevel=2,
173 )
174 logging.getLogger().warning(txt)
175
176 def error(self, txt):
177 """

Callers 15

operating_systemFunction · 0.80
macos_appFunction · 0.80
debugMethod · 0.80
infoMethod · 0.80
alertMethod · 0.80
errorMethod · 0.80
__call__Method · 0.80
alpn_proto_negotiatedMethod · 0.80
addressMethod · 0.80
cipher_nameMethod · 0.80
clientcertMethod · 0.80
ip_addressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected