| 1597 | logs = [] |
| 1598 | |
| 1599 | class CaptureLogs(logging.Handler): |
| 1600 | def emit(self, record): |
| 1601 | logs.append(record) |
| 1602 | |
| 1603 | # Maintenance may race foreground acquisition, so retries are |
| 1604 | # optional. Capture their expected warnings through pool shutdown. |
no outgoing calls