summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-21 02:49:27 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-11-21 02:49:27 +0100
commita7ba3e2484cccaeefb07222c57acae9f8a247193 (patch)
tree8d7f15f73b312f42d029504c676ec079d9d6fe20
parentaa452c2c5fbc63b6b818da08b56b568a999bfcab (diff)
downloadaioeventlet-a7ba3e2484cccaeefb07222c57acae9f8a247193.tar.gz
Only set "debug_exceptions" of the eventlet hub when the debug mode of the
event loop is enabled.
-rw-r--r--README2
-rw-r--r--aiogreen.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/README b/README
index 8822cac..000d705 100644
--- a/README
+++ b/README
@@ -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')