From 84d7971c8e50e7d35d7a5fac9353e687f168a1a1 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 20 Jun 2014 11:14:25 -0400 Subject: [PATCH] log the command that is being run with subprocess Signed-off-by: Alfredo Deza (cherry picked from commit e189a668285f9ab73116bc19f9df1cc515473541) --- src/ceph-disk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ceph-disk b/src/ceph-disk index 08286c1012c7e..9c3732a1fc0ba 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) -- 2.39.5