Skip to content

Commit

Permalink
Dont log the fd #521
Browse files Browse the repository at this point in the history
It seems that the file descriptor is not always present, dont log it in the number since that's really library level debug info anyway.
  • Loading branch information
gmr committed Apr 29, 2015
1 parent 72d33bd commit 4838789
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pika/adapters/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,13 @@ def _handle_error(self, error_value):
elif error_value.args[0] == ssl.SSL_ERROR_WANT_WRITE:
self.event_state = self.WRITE
else:
LOGGER.error("SSL Socket error on fd %d: %r",
self.socket.fileno(), error_value)
LOGGER.error("SSL Socket error: %r", error_value)
elif error_code == errno.EPIPE:
# Broken pipe, happens when connection reset
LOGGER.error("Socket connection was broken")
else:
# Haven't run into this one yet, log it.
LOGGER.error("Socket Error on fd %d: %s", self.socket.fileno(),
error_code)
LOGGER.error("Socket Error: %s", error_code)

# Disconnect from our IOLoop and let Connection know what's up
self._handle_disconnect()
Expand Down

0 comments on commit 4838789

Please sign in to comment.