In case some poller implementations accept sockets or values other than
integer file descriptors, this prevents tornado's log messages from
raising errors.
try:
os.close(fd)
except Exception:
- logging.debug("error closing fd %d", fd, exc_info=True)
+ logging.debug("error closing fd %s", fd, exc_info=True)
self._waker.close()
self._impl.close()
# Happens when the client closes the connection
pass
else:
- logging.error("Exception in I/O handler for fd %d",
+ logging.error("Exception in I/O handler for fd %s",
fd, exc_info=True)
except Exception:
- logging.error("Exception in I/O handler for fd %d",
+ logging.error("Exception in I/O handler for fd %s",
fd, exc_info=True)
# reset the stopped flag so another start/stop pair can be issued
self._stopped = False