Skip to content

Commit

Permalink
Merge pull request #505 from tureba/fix-error-reporting-logs-of-runner
Browse files Browse the repository at this point in the history
fix error reporting of runner
  • Loading branch information
erikbern committed May 6, 2024
2 parents 75043ab + ceb8a3e commit 1c3f702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ann_benchmarks/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def _handle_container_return_value(
msg = msg.format(exit_code)

if exit_code not in [0, None]:
logger.error(colors.color(container.logs().decode(), fg="red"))
for line in container.logs(stream=True):
logger.error(colors.color(line.decode(), fg="red"))
logger.error(msg)
else:
logger.info(msg)

0 comments on commit 1c3f702

Please sign in to comment.