MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / CaptureLogs

Class CaptureLogs

tests/test_pool.py:1599–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Calls

no outgoing calls