Log command to debug log for traceback purposes

Log commands so we can trace back which errors / outputs are from each
command.
This commit is contained in:
deeplow 2023-07-19 12:37:00 +01:00
parent b73ce5bf6a
commit 48b2e7bc3c
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -77,6 +77,10 @@ class DangerzoneConverter:
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