3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

Irc: log socket.send() errors with a proper traceback

This commit is contained in:
James Lu 2017-05-09 18:06:51 -07:00
parent 4ca8667669
commit bac6dc36b4

View File

@ -510,7 +510,7 @@ class Irc(utils.DeprecatedAttributesObject):
try:
self.socket.send(data)
except (OSError, AttributeError):
log.debug("(%s) Dropping message %r; network isn't connected!", self.name, stripped_data)
log.exception("(%s) Dropping message %r; network isn't connected!", self.name, stripped_data)
def send(self, data, queue=True):
"""send() wrapper with optional queueing support."""