Skip to content

Commit

Permalink
Log each line in command separately
Browse files Browse the repository at this point in the history
  • Loading branch information
tothtamas28 committed Jul 5, 2024
1 parent 12c3409 commit c73fd15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyk/src/pyk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ def _subprocess_run(
log_prefix = f'[PID={popen.pid}]'

command = shlex.join(args)
logger.info(f'{log_prefix}[exec] {command}')
for line in command.split('\n'):
logger.info(f'{log_prefix}[exec] {line}')

start_time = time.time()

try:
Expand Down

0 comments on commit c73fd15

Please sign in to comment.