Skip to content

Commit

Permalink
Fix printing of container logs (#559)
Browse files Browse the repository at this point in the history
* Fix printing of container logs

* Use normal print
  • Loading branch information
davidkopp authored Nov 25, 2023
1 parent 60dd637 commit df5df50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,4 +1438,8 @@ def run(self):
except BaseException as e:
error_helpers.log_error('Base exception occured in runner.py: ', e, successful_run_id)
finally:
if args.print_logs: print("Container logs:", runner.get_logs())
if args.print_logs:
for container_id, std_out in runner.get_logs().items():
print(f"Container logs of '{container_id}':")
print(std_out)
print(f"\n-----------------------------\n")

0 comments on commit df5df50

Please sign in to comment.