From 56ff510f9d383c309fb3f87e7d19e20fb3cac780 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 d7e183c2..5eec357a 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])