]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
log the command that is being run with subprocess
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 20 Jun 2014 15:14:25 +0000 (11:14 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 26 Jun 2014 14:11:59 +0000 (10:11 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
(cherry picked from commit e189a668285f9ab73116bc19f9df1cc515473541)

src/ceph-disk

index 08286c1012c7e1ded77fb9389651918b25740371..9c3732a1fc0baedd173f25f0cd2129b633dc769b 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)