Print out all of stdout on each process poll. (#69)

This commit is contained in:
Erik Peterson
2023-07-07 15:02:08 -07:00
committed by GitHub
parent 4562bc6caf
commit 3defe044bd

View File

@@ -61,8 +61,9 @@ def run_agent(
while True:
if process.stdout is None:
continue
output = process.stdout.readline()
print(output.strip())
while output := process.stdout.readline():
print(output.strip())
# Check if process has ended
if process.poll() is not None: