ソースを参照

Merge pull request #3041 from ThomasWaldmann/stderr-flush-1.1

 flush json mode progress stderr output (1.1-maint)
TW 7 年 前
コミット
3f3aa2405c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/helpers.py

@@ -1444,7 +1444,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: