From 54ac260a0a76313e83871c05e450b68fd7221903 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 Nov 2019 15:59:05 +0000 Subject: [PATCH] orchestra/run: more concise logging when we run commands Signed-off-by: Sage Weil --- teuthology/orchestra/run.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index c22a98b5..f5b46ff4 100644 --- a/teuthology/orchestra/run.py +++ b/teuthology/orchestra/run.py @@ -87,12 +87,8 @@ class RemoteProcess(object): """ Execute remote command """ - prefix = "Running:" - if self.label: - prefix = "Running ({label}):".format(label=self.label) - log.getChild(self.hostname).info(prefix) for line in self.command.split('\n'): - log.getChild(self.hostname).info('> %s' % line) + log.getChild(self.hostname).info('%s> %s' % (self.label or '', line)) if hasattr(self, 'timeout'): (self._stdin_buf, self._stdout_buf, self._stderr_buf) = \ -- 2.47.3