diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-31 11:59:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-31 11:59:43 (GMT) |
commit | 49d0f4e4282cbb397232c0a80799f661d2f9456f (patch) | |
tree | f4b6f8fb730f62eb45bb897cc478e53fca5747c6 /Lib/asyncio | |
parent | 323748e1d1f5f3239476745d0eb83db3a1d9e224 (diff) | |
download | cpython-49d0f4e4282cbb397232c0a80799f661d2f9456f.zip cpython-49d0f4e4282cbb397232c0a80799f661d2f9456f.tar.gz cpython-49d0f4e4282cbb397232c0a80799f661d2f9456f.tar.bz2 |
Issue #20452: Remove debug code, no more needed
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 168e9cb..cafd10a 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -620,18 +620,10 @@ class BaseEventLoop(events.AbstractEventLoop): timeout = min(timeout, deadline) # TODO: Instrumentation only in debug mode? - # FIXME: don't force log (issue #20452) - if True: #logger.isEnabledFor(logging.INFO): + if logger.isEnabledFor(logging.INFO): t0 = self.time() event_list = self._selector.select(timeout) t1 = self.time() - # FIXME: remove these debug info (issue #20452) - dt = t1-t0 - if timeout is not None and dt < timeout and not event_list: - print("WARNING: selector.select(timeout=%.20f) took dt=%.20f sec (dt-timeout=%+.20f)" - % (timeout, dt, dt-timeout), file=sys.__stdout__) - print("WARNING: dt+%.20f > timeout? %s" - % (self._granularity, (dt + self._granularity) > timeout), file=sys.__stdout__) if t1-t0 >= 1: level = logging.INFO else: |