add more log
This commit is contained in:
parent
a185e1671b
commit
816592b674
3 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue