diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-12 18:46:36 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-12 18:46:36 +0100 |
commit | 61f92d789bac137d10e6c185a1cd9fb16d1c4040 (patch) | |
tree | 3936e70010d857418187dde46ffe106803d87f5e | |
parent | 236758dbd98c565157582118ae228cb1eed714b3 (diff) | |
download | aioeventlet-61f92d789bac137d10e6c185a1cd9fb16d1c4040.tar.gz |
event loop debug mode enables hub debug mode
-rw-r--r-- | aiogreen/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aiogreen/__init__.py b/aiogreen/__init__.py index fc9dd5d..c98ac4a 100644 --- a/aiogreen/__init__.py +++ b/aiogreen/__init__.py @@ -93,6 +93,9 @@ class EventLoop(BaseEventLoop): # Queue used by call_soon_threadsafe() self._queue = ThreadQueue(self) self._run = None + if self.get_debug(): + hub = hubs.get_hub() + hub.debug_blocking = True def time(self): # FIXME: is it safe to store the hub in an attribute of the event loop? |