[issue20275] asyncio: remove debug code from BaseEventLoop

Yury Selivanov report at bugs.python.org
Thu Jan 16 00:18:22 CET 2014


Yury Selivanov added the comment:

Victor,

Re your patch: since it's not really time syscalls, and Guido said he's using this debug code, how about we just have something like:

        t0 = self.time()
        event_list = self._selector.select(timeout)
        t1 = self.time()
        if t1 - t0 >= 1:
            argstr = '' if timeout is None else ' {:.3f}'.format(timeout)
            level = logging.INFO
            logger.log(level, 'poll%s took %.3f seconds', argstr, t1-t0)

?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20275>
_______________________________________


More information about the Python-bugs-list mailing list