From 00e5247a08e0a239fad013ba2b7106bd618e4db2 Mon Sep 17 00:00:00 2001 From: Soren Rasmussen Date: Fri, 26 Jul 2024 14:27:19 -0600 Subject: [PATCH] debugging message --- scm/src/run_scm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm/src/run_scm.py b/scm/src/run_scm.py index cea465726..c0febaa48 100755 --- a/scm/src/run_scm.py +++ b/scm/src/run_scm.py @@ -160,13 +160,14 @@ def execute(cmd, ignore_error = False): message = 'Execution of "{0}" returned with exit code {1}\n'.format(cmd, status) message += ' stdout: "{0}"\n'.format(stdout.decode(encoding='ascii', errors='ignore').rstrip('\n')) message += ' stderr: "{0}"'.format(stderr.decode(encoding='ascii', errors='ignore').rstrip('\n')) - print("DEBUGGING message:",message) + if status == 0: logging.debug(message) elif not ignore_error: logging.critical(message) raise Exception('Execution of command "{0}" failed, exit code {1}\n'.format(cmd, status)) else: + print("SHOULD PRINT ERROR MESSAGE: status and ignore error ==", status, ignore_error) logging.error(message) return (status, stdout.decode(encoding='ascii', errors='ignore').rstrip('\n'), stderr.decode(encoding='ascii', errors='ignore').rstrip('\n'))