Log with level warn.
(self, txt)
| 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 | """ |
no outgoing calls
no test coverage detected