]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/run: more concise logging when we run commands 1353/head
authorSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 15:59:05 +0000 (15:59 +0000)
committerSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 16:52:15 +0000 (16:52 +0000)
Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/orchestra/run.py

index c22a98b5794d0b7bf695470b570793747592e99b..f5b46ff42f210ee0d6f45116ad8fe3970f4e6921 100644 (file)
@@ -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) = \