do not log the progress display

This commit is contained in:
Chronial committed 2014-02-19 19:17:34 +01:00
1 parent 1e8a90a9cb
commit 3699e08010
1 file changed
+4
+4
View File
@@ -23,6 +23,10 @@ def tee_log(infile, out_lines, log_level):
""" """
def tee_thread(): def tee_thread():
for line in iter(infile.readline, ""): 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()) logging.log(log_level, line.strip())
out_lines.append(line) out_lines.append(line)
infile.close() infile.close()