Skip to content

Commit

Permalink
Log command to debug log for traceback purposes
Browse files Browse the repository at this point in the history
Log commands so we can trace back which errors / outputs are from each
command.
  • Loading branch information
deeplow committed Jul 19, 2023
1 parent ef5daba commit cf8d9f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dangerzone/conversion/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ async def run_command(
stderr=asyncio.subprocess.PIPE,
)

# Log command to debug log so we can trace back which errors
# are from each command
self.captured_output += f">>> {' '.join(args)}\n".encode()

assert proc.stdout is not None
assert proc.stderr is not None

Expand Down

0 comments on commit cf8d9f9

Please sign in to comment.