add more log

This commit is contained in:
clowwindy 2014-06-06 22:57:57 +08:00
parent a185e1671b
commit 816592b674
3 changed files with 14 additions and 4 deletions

View file

@ -202,6 +202,8 @@ class EventLoop(object):
continue
else:
logging.error(e)
import traceback
traceback.print_exc()
continue
for handler in self._handlers:
# TODO when there are a lot of handlers
@ -209,6 +211,8 @@ class EventLoop(object):
handler(events)
except (OSError, IOError) as e:
logging.error(e)
import traceback
traceback.print_exc()
# from tornado