浏览代码

Merge pull request #3032 from ThomasWaldmann/stderr-flush

flush json mode progress stderr output
TW 7 年之前
父节点
当前提交
9e9398e6cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/helpers/progress.py

+ 1 - 1
src/borg/helpers/progress.py

@@ -86,7 +86,7 @@ class ProgressIndicatorBase:
             finished=finished,
             time=time.time(),
         ))
-        print(json.dumps(kwargs), file=sys.stderr)
+        print(json.dumps(kwargs), file=sys.stderr, flush=True)
 
     def finish(self):
         if self.json: