From 3b04d1abdc0c7d5cf7250de61d7c40874dc1e860 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 25 Apr 2016 19:14:34 -0700 Subject: [PATCH] Irc: raise connection failure log levels to error --- classes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes.py b/classes.py index 063ce16..6969d25 100644 --- a/classes.py +++ b/classes.py @@ -267,8 +267,8 @@ class Irc(): except (socket.error, ProtocolError, ConnectionError) as e: # self.run() or the protocol module it called raised an # exception, meaning we've disconnected! - log.warning('(%s) Disconnected from IRC: %s: %s', - self.name, type(e).__name__, str(e)) + log.error('(%s) Disconnected from IRC: %s: %s', + self.name, type(e).__name__, str(e)) if not self.aborted.is_set(): # Only start a disconnection process if one doesn't already @@ -336,10 +336,10 @@ class Irc(): buf += data if not data: - log.warning('(%s) No data received, disconnecting!', self.name) + log.error('(%s) No data received, disconnecting!', self.name) return elif (time.time() - self.lastping) > self.pingtimeout: - log.warning('(%s) Connection timed out.', self.name) + log.error('(%s) Connection timed out.', self.name) return while b'\n' in buf: line, buf = buf.split(b'\n', 1)