MCPcopy
hub / github.com/MagicStack/asyncpg / LogCollector

Class LogCollector

tests/test_logging.py:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class LogCollector:
8 def __init__(self):
9 self.records = []
10
11 def __call__(self, record):
12 self.records.append(record)
13
14
15class TestQueryLogging(tb.ConnectedTestCase):

Callers 2

test_logging_contextMethod · 0.85
test_error_loggingMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_logging_contextMethod · 0.68
test_error_loggingMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…