diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | aiogreen.py | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -168,6 +168,8 @@ Changes: a new handle * In debug mode, detect calls to call_soon() from greenthreads which are not threadsafe (would not wake up the event loop). +* Only set "debug_exceptions" of the eventlet hub when the debug mode of the + event loop is enabled. 2014-11-19: version 0.1 ----------------------- diff --git a/aiogreen.py b/aiogreen.py index 3a46956..6c44d00 100644 --- a/aiogreen.py +++ b/aiogreen.py @@ -192,6 +192,8 @@ class EventLoop(asyncio.SelectorEventLoop): def set_debug(self, debug): super(EventLoop, self).set_debug(debug) + self._hub.debug_exceptions = debug + # Detect blocking eventlet functions. The feature is implemented with # signal.alarm() which is is not available on Windows. self._hub.debug_blocking = debug and (sys.platform != 'win32') |