From c745fe4a11a3a7f6e8cd05199a508a5f2cd3239e Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 07 2020 12:46:21 +0000 Subject: cli: flush stdout during watch-logs Fixes: https://pagure.io/koji/issue/2227 --- diff --git a/cli/koji_cli/lib.py b/cli/koji_cli/lib.py index 967f6e8..325ad94 100644 --- a/cli/koji_cli/lib.py +++ b/cli/koji_cli/lib.py @@ -333,6 +333,7 @@ def bytes_to_stdout(contents): sys.stdout.write(contents) else: sys.stdout.buffer.write(contents) + sys.stdout.buffer.flush() def watch_logs(session, tasklist, opts, poll_interval):