Skip to content

Commit f27040d

Browse files
committed
tmp: log subprocess stdout and stderr
1 parent 0f0892e commit f27040d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arc/job/local.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def execute_command(command: Union[str, List[str]],
6060
completed_process = subprocess.run(command, shell=shell, capture_output=True)
6161
else:
6262
completed_process = subprocess.run(command, shell=shell, capture_output=True, executable=executable)
63+
logger.info(f'Command executed: {command}')
64+
logger.info(f'Command output: {completed_process.stdout}')
65+
logger.info(f'Command error: {completed_process.stderr}')
6366
return _format_stdout(completed_process.stdout), _format_stdout(completed_process.stderr)
6467
except subprocess.CalledProcessError as e:
6568
error = e # Store the error so we can raise a SettingsError if needed.

0 commit comments

Comments
 (0)