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

Function silence_asyncio_long_exec_warning

asyncpg/_testbase/__init__.py:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30@contextlib.contextmanager
31def silence_asyncio_long_exec_warning():
32 def flt(log_record):
33 msg = log_record.getMessage()
34 return not msg.startswith('Executing ')
35
36 logger = logging.getLogger('asyncio')
37 logger.addFilter(flt)
38 try:
39 yield
40 finally:
41 logger.removeFilter(flt)
42
43
44def with_timeout(timeout):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…