Mercurial > piecrust2
comparison piecrust/publishing/shell.py @ 614:a2d9ef307a08
publish: Make the `shell` log update faster by flushing the pipe.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 04 Feb 2016 21:49:15 -0800 |
parents | e2e955a3bb25 |
children | 8f9c0bdb3724 |
comparison
equal
deleted
inserted
replaced
613:e2e955a3bb25 | 614:a2d9ef307a08 |
---|---|
58 line_str = line.decode('utf8') | 58 line_str = line.decode('utf8') |
59 sys.stdout.write(line_str) | 59 sys.stdout.write(line_str) |
60 sys.stdout.flush() | 60 sys.stdout.flush() |
61 if self.log_fp: | 61 if self.log_fp: |
62 self.log_fp.write(line_str) | 62 self.log_fp.write(line_str) |
63 self.log_fp.flush() | |
63 | 64 |
64 self.proc.communicate() | 65 self.proc.communicate() |
65 logger.debug("Publish monitor exiting.") | 66 logger.debug("Publish monitor exiting.") |
66 | 67 |