Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
Co-authored-by: Fernando Bravo <39527354+fernando79513@users.noreply.github.com>
  • Loading branch information
Hook25 and fernando79513 committed Dec 16, 2024
1 parent ff3d0c8 commit acf8cf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metabox/metabox/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ def run(self):
# let's escape < from the all outputs to avoid confusing loguru
# loguru assumes that <> is used for colorizing
logger.error("The following steps failed")
failed_steps = "\n".join(str(x) for x in scn.failures)
failed_steps = failed_steps.replace("<", r"\<")
logger.error(failed_steps)
for failed_steps in scn.failures:
step = str(failed_steps).replace("<", r"\<")
logger.error(" - {}".format(step))

output = scn.get_output_streams().strip().replace("<", r"\<")
logger.error("Scenario output:\n" + output)
Expand Down

0 comments on commit acf8cf2

Please sign in to comment.