Log with level info.
(self, txt)
| 138 | logging.getLogger().debug(txt) |
| 139 | |
| 140 | def info(self, txt): |
| 141 | """ |
| 142 | Log with level info. |
| 143 | """ |
| 144 | warnings.warn( |
| 145 | "mitmproxy's ctx.log.info() is deprecated. Please use the standard Python logging module instead.", |
| 146 | DeprecationWarning, |
| 147 | stacklevel=2, |
| 148 | ) |
| 149 | logging.getLogger().info(txt) |
| 150 | |
| 151 | def alert(self, txt): |
| 152 | """ |