Added command line debug for exec_with_retry()

- When debug level > 2 prints a line we can copy & paste
This commit is contained in:
Salvador E. Tropea 2021-11-25 11:27:58 -03:00
parent f9a2aac01b
commit ad173a3c07
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ def extract_errors(text):
def exec_with_retry(cmd):
logger.debug('Executing: '+str(cmd))
if GS.debug_level > 2:
logger.debug('Command line: '+' '.join(cmd))
retry = 2
while retry:
result = run(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True)