Enable asyncio debug

Related to Python 3.6+

import asyncio
import logging

logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()
loop.set_debug(True)

Also you an enable ResourceWarnings providing -Wdefault argument to python command

#python #asyncio
0
Ivan Borshchov profile picture
Feb 21, 2017
by Ivan Borshchov
Did it help you?
Yes !
No

Best related