]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
log the command that is being run with subprocess 2006/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 20 Jun 2014 15:14:25 +0000 (11:14 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 20 Jun 2014 15:14:25 +0000 (11:14 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
src/ceph-disk

index d47758ad8e53f488f2ea08bae4c0485598a6c165..ccf5681e6e058bf13c682b89376426933d7da862 100755 (executable)
@@ -280,7 +280,7 @@ def command(arguments, **kwargs):
     process in a tuple: (output, returncode).
     """
     arguments = _get_command_executable(arguments)
-
+    LOG.info('Running command: %s' % ' '.join(arguments))
     process = subprocess.Popen(
         arguments,
         stdout=subprocess.PIPE,
@@ -300,6 +300,7 @@ def command_check_call(arguments):
     otherwise.
     """
     arguments = _get_command_executable(arguments)
+    LOG.info('Running command: %s' % ' '.join(arguments))
     return subprocess.check_call(arguments)