Method
__call__
(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 | |
| 196 | LOGGING_LEVELS_TO_LOGENTRY = { |
Callers
nothing calls this directly
Tested by
no test coverage detected