From bac6dc36b430d9d7823d1cfcaec494f140aeb5f9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 9 May 2017 18:06:51 -0700 Subject: [PATCH] Irc: log socket.send() errors with a proper traceback --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index c3e5763..8cdfbc5 100644 --- a/classes.py +++ b/classes.py @@ -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."""