From: Alfredo Deza Date: Fri, 20 Jun 2014 15:14:25 +0000 (-0400) Subject: log the command that is being run with subprocess X-Git-Tag: v0.83~54^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e189a668285f9ab73116bc19f9df1cc515473541;p=ceph.git log the command that is being run with subprocess Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-disk b/src/ceph-disk index d47758ad8e53..ccf5681e6e05 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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)