diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-21 02:49:27 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-21 02:49:27 +0100 |
commit | a7ba3e2484cccaeefb07222c57acae9f8a247193 (patch) | |
tree | 8d7f15f73b312f42d029504c676ec079d9d6fe20 | |
parent | aa452c2c5fbc63b6b818da08b56b568a999bfcab (diff) | |
download | aioeventlet-a7ba3e2484cccaeefb07222c57acae9f8a247193.tar.gz |
Only set "debug_exceptions" of the eventlet hub when the debug mode of the
event loop is enabled.
-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') |