Asyncio Debug ModeΒΆ

  • Set the environment variable: PYTHONASYNCIODEBUG=1
  • Configure Python logging: logging.basicConfig(level=logging.ERROR)

See also: Debug mode of asyncio (ref doc).