From 3699e080102ca21f657cb510044c788b1d3091b0 Mon Sep 17 00:00:00 2001 From: Chronial Date: Wed, 19 Feb 2014 19:17:34 +0100 Subject: [PATCH] do not log the progress display --- snapraid-runner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snapraid-runner.py b/snapraid-runner.py index 7a37d95..e710ec5 100644 --- a/snapraid-runner.py +++ b/snapraid-runner.py @@ -23,6 +23,10 @@ def tee_log(infile, out_lines, log_level): """ def tee_thread(): for line in iter(infile.readline, ""): + line = line.strip() + # Do not log the progress display + if "\r" in line: + line = line.split("\r")[-1] logging.log(log_level, line.strip()) out_lines.append(line) infile.close()