Skip to content

Commit

Permalink
provision/downburst: log multiline stderr on error
Browse files Browse the repository at this point in the history
For better logs readability just log downburst's stderr
line-by-line.

Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Jan 15, 2025
1 parent 8830294 commit 625d26d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions teuthology/provision/downburst.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ def create(self):
self.destroy()
else:
success = False
log.info("Downburst failed on %s: %s" % (
self.name, stderr.strip()))
log.error("Downburst failed on %s" % self.name)
for i in stderr.split('\n'):
log.error(f">>> {i}")
break
return success

Expand Down

0 comments on commit 625d26d

Please sign in to comment.