mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04: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