]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/daemon/cephadmunit: add journalctl suffix 1525/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 25 Jun 2020 16:30:27 +0000 (18:30 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 25 Jun 2020 16:30:27 +0000 (18:30 +0200)
The logger is running in background and the output is mixed
with other loggers. Adding a recognizable suffix will
help to distinguish logging threads.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/orchestra/daemon/cephadmunit.py

index fbc33287336b4409a49b4ae4c18f70b5956ebc88..421fd2c9cdf2a17a76237f43d5fdc5949beaab14 100644 (file)
@@ -50,7 +50,7 @@ class CephadmUnit(DaemonState):
                   '-u',
                   'ceph-%s@%s.service' % (self.fsid, name)
             ],
-            logger=logging.getLogger(self.cluster + '.' + name),
+            logger=logging.getLogger('journalctl@' + self.cluster + '.' + name),
             label=name,
             wait=False,
             check_status=False,