From 3cb7157afd60e6d46590eea6a4d499b2d9cf297b Mon Sep 17 00:00:00 2001 From: TheKysek Date: Thu, 25 May 2017 12:09:20 +0200 Subject: [PATCH] Print received error messages --- src/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection.py b/src/connection.py index 16278d4..a542964 100644 --- a/src/connection.py +++ b/src/connection.py @@ -284,6 +284,8 @@ class Connection(threading.Thread): elif m.command == b'ping': logging.debug('{}:{} -> ping'.format(self.host, self.port)) self.send_queue.put(message.Message(b'pong', b'')) + elif m.command == b'error': + logging.error('{}:{} -> error: {}'.format(self.host, self.port, m.payload)) else: logging.debug('{}:{} -> {}'.format(self.host, self.port, m))