]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
run.py: Add target name to logging info
authorSam Lang <sam.lang@inktank.com>
Sun, 3 Feb 2013 17:09:04 +0000 (11:09 -0600)
committerSam Lang <sam.lang@inktank.com>
Sun, 3 Feb 2013 17:09:04 +0000 (11:09 -0600)
Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/orchestra/run.py

index e60d8b9815e5e2d710fa90660fab63ce37da0373..3dff121319d7831e823d1bbdfc262511b20eb541 100644 (file)
@@ -54,7 +54,8 @@ def execute(client, args):
     block until the exit status is available.
     """
     cmd = quote(args)
-    log.debug('Running: {cmd!r}'.format(cmd=cmd))
+    (host,port) = client.get_transport().getpeername()
+    log.debug('Running [{h}]: {cmd!r}'.format(h=host, cmd=cmd))
     (in_, out, err) = client.exec_command(cmd)
 
     def get_exitstatus():