From ad173a3c07308602bdda162030e57c9dede63598 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 25 Nov 2021 11:27:58 -0300 Subject: [PATCH] Added command line debug for exec_with_retry() - When debug level > 2 prints a line we can copy & paste --- kibot/kiplot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 4ad20797..c7cab681 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -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)