]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
show role in log prefix when running workunits
authorSage Weil <sage@newdream.net>
Thu, 16 Jun 2011 22:19:14 +0000 (15:19 -0700)
committerSage Weil <sage@newdream.net>
Thu, 16 Jun 2011 22:19:55 +0000 (15:19 -0700)
teuthology/task/workunit.py

index d75308c696c7e582a3a870175561e387c4d58453..4febaddaae81ad84bc0e72e39b851efafa080e17 100644 (file)
@@ -55,6 +55,7 @@ def task(ctx, config):
         srcdir = '/tmp/cephtest/workunit.{role}'.format(role=role)
 
         remote.run(
+            logger=log.getChild(role),
             args=[
                 'mkdir', '--', srcdir,
                 run.Raw('&&'),
@@ -93,6 +94,7 @@ def task(ctx, config):
             for workunit in to_run:
                 log.info('Running workunit %s...', workunit)
                 remote.run(
+                    logger=log.getChild(role),
                     args=[
                         'mkdir', '--', scratch_tmp,
                         run.Raw('&&'),
@@ -108,6 +110,7 @@ def task(ctx, config):
                 )
 
         remote.run(
+            logger=log.getChild(role),
             args=[
                 'rm', '-rf', '--', '/tmp/cephtest/workunits.list', srcdir,
                 ],