From 43df3e8936ee54282321a6cd9a881265e1f1f525 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 5 Oct 2015 23:48:49 +0200 Subject: hide useles log messages --- voctogui/lib/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'voctogui') diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py index 42a403e..0df302a 100644 --- a/voctogui/lib/connection.py +++ b/voctogui/lib/connection.py @@ -80,7 +80,9 @@ def on_data(conn, _, leftovers, *args): line = line.strip() command_queue.put((line, conn)) - log.debug("remaining %r", lines[-1]) + if lines[-1] != '': + log.debug("remaining %r", lines[-1]) + leftovers.append(lines[-1]) return True -- cgit v1.2.3