From 40af791abf441061de80ead8629f7d76cde138dc Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 20 Apr 2014 06:09:45 +0300 Subject: [PATCH] asyncio: Add dumb debug output. --- asyncio/asyncio.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asyncio/asyncio.py b/asyncio/asyncio.py index 4a183237..1f4687e0 100644 --- a/asyncio/asyncio.py +++ b/asyncio/asyncio.py @@ -99,9 +99,11 @@ class EpollEventLoop(EventLoop): self.poller = select.epoll(1) def add_reader(self, fd, cb, *args): + print("add_reader") self.poller.register(fd, select.EPOLLIN, (cb, args)) def add_writer(self, fd, cb, *args): + print("add_writer") self.poller.register(fd, select.EPOLLOUT, (cb, args)) def wait(self, delay): @@ -112,6 +114,7 @@ class EpollEventLoop(EventLoop): res = self.poller.poll(int(delay * 1000)) print("poll: ", res) for cb, ev in res: + print("Calling %s%s" % (cb[0], cb[1])) cb[0](*cb[1])