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.80.2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84d7971c8e50e7d35d7a5fac9353e687f168a1a1;p=ceph.git log the command that is being run with subprocess Signed-off-by: Alfredo Deza (cherry picked from commit e189a668285f9ab73116bc19f9df1cc515473541) --- diff --git a/src/ceph-disk b/src/ceph-disk index 08286c1012c7..9c3732a1fc0b 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)