mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-25 01:44:28 +01:00
Print out all of stdout on each process poll. (#69)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user