Commit 5ab4154d by Eric Coissac

Supress the intermediate progression logging if the log is done on a tty

parent be2c5ba6
......@@ -129,11 +129,11 @@ cdef class ProgressBar:
hour,minu,sec)
tenth = int(percent * 10)
if tenth != self.lastlog:
if tenth != self.lastlog and not self.ontty:
if self.ontty:
<void>fputs(b'\n',stderr)
# if self.ontty:
# <void>fputs(b'\n',stderr)
self.logger.info('%s %5.1f %% remain : %02d:%02d:%02d' % (
bytes2str(self._head),
percent*100.,
......
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