Log with level error.
(self, txt)
| 174 | logging.getLogger().warning(txt) |
| 175 | |
| 176 | def error(self, txt): |
| 177 | """ |
| 178 | Log with level error. |
| 179 | """ |
| 180 | warnings.warn( |
| 181 | "mitmproxy's ctx.log.error() is deprecated. Please use the standard Python logging module instead.", |
| 182 | DeprecationWarning, |
| 183 | stacklevel=2, |
| 184 | ) |
| 185 | logging.getLogger().error(txt) |
| 186 | |
| 187 | def __call__(self, text, level="info"): |
| 188 | warnings.warn( |
no test coverage detected