From: Sage Weil Date: Tue, 12 Nov 2019 15:59:05 +0000 (+0000) Subject: orchestra/run: more concise logging when we run commands X-Git-Tag: 1.1.0~196^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1353%2Fhead;p=teuthology.git orchestra/run: more concise logging when we run commands Signed-off-by: Sage Weil --- diff --git a/teuthology/orchestra/run.py b/teuthology/orchestra/run.py index c22a98b57..f5b46ff42 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) = \