From 625d26de2253cb959f474078f1eaa265f427a6af Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Fri, 10 Jan 2025 15:15:21 +0100 Subject: [PATCH] provision/downburst: log multiline stderr on error For better logs readability just log downburst's stderr line-by-line. Signed-off-by: Kyr Shatskyy --- teuthology/provision/downburst.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index 97a511ef9..7dac58efc 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -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