3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 23:09:23 +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: try:
self.socket.send(data) self.socket.send(data)
except (OSError, AttributeError): 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): def send(self, data, queue=True):
"""send() wrapper with optional queueing support.""" """send() wrapper with optional queueing support."""