summaryrefslogtreecommitdiff
path: root/voctogui/lib/connection.py
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-10-05 23:48:49 +0200
committerMaZderMind <git@mazdermind.de>2015-10-05 23:48:49 +0200
commit43df3e8936ee54282321a6cd9a881265e1f1f525 (patch)
treeadd287ccc233e8eb096e61b21c57b1356c9ae58a /voctogui/lib/connection.py
parenta9a3798af63247500ce8e01cac419a78ebe4e596 (diff)
hide useles log messages
Diffstat (limited to 'voctogui/lib/connection.py')
-rw-r--r--voctogui/lib/connection.py4
1 files changed, 3 insertions, 1 deletions
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