Hi, Last days, I modified the "debug mode" of asyncio:
- setting the PYTHONASYNCIODEBUG now also enables the debug mode of event loops - slow callbacks (execution taking more than 100 ms) are now logged in debug mode - the execution time of the selector is now only logged in debug mode - the check in call_soon() and call_at() to detect thread issues now does nothing if the current loop (of the current thread) is None. According to Guido, it's part of the specification to be able to pass directly an event loop without setting "globally" the event loop in the (current) event loop policy. Updated documentation: https://docs.python.org/dev/library/asyncio-dev.html IMO the debug mode is still a work-in-progress. For example, the value of "100 ms" is arbitrary (but configurable, it's just an attribute of the event loop). I didn't test this value on real application, so please share your experience with these debug logs. My next task for the debug mode is to save the traceback where a task was created to enhance messages on errors: https://code.google.com/p/tulip/issues/detail?id=137 Victor
