Commit a7d86bb5 authored by Paul Wise's avatar Paul Wise Committed by Chris Lamb

Do not delete the current terminal line for every progress bar update

The progress bar already overwrites the entire line so erasing it before that serves no purpose. The erasure was also causing the progress bar to flicker and wasn't portable to different types of terminals.
parent 81e54147
Pipeline #12571 failed with stage
in 9 minutes 58 seconds
......@@ -34,9 +34,6 @@ class ProgressLoggingHandler(logging.StreamHandler):
def emit(self, record):
try:
# Delete the current line (i.e. the progress bar)
self.stream.write("\r\033[K")
self.flush()
super().emit(record)
if not self.progressbar.bar.finished:
self.progressbar.bar.update()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment