Skip to content

Commit

Permalink
debugging message
Browse files Browse the repository at this point in the history
  • Loading branch information
scrasmussen committed Jul 26, 2024
1 parent ccfd8e0 commit 00e5247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scm/src/run_scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down

0 comments on commit 00e5247

Please sign in to comment.