(self, record: logging.LogRecord)
| 242 | |
| 243 | class AsyncioExceptionFilter(logging.Filter): |
| 244 | def filter(self, record: logging.LogRecord) -> bool: |
| 245 | if record.levelno == logging.WARNING and "socket.send() raised exception" in record.getMessage(): |
| 246 | return False |
| 247 | return True |
| 248 | |
| 249 | logging.getLogger("asyncio").addFilter(AsyncioExceptionFilter()) |
| 250 |
no outgoing calls
no test coverage detected