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:
parent
4ca8667669
commit
bac6dc36b4
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user