From 48b2e7bc3c163ec1e7dae92d4ccc2a20814f1c4a Mon Sep 17 00:00:00 2001 From: deeplow Date: Wed, 19 Jul 2023 12:37:00 +0100 Subject: [PATCH] Log command to debug log for traceback purposes Log commands so we can trace back which errors / outputs are from each command. --- dangerzone/conversion/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dangerzone/conversion/common.py b/dangerzone/conversion/common.py index b308c0c..677ac6e 100644 --- a/dangerzone/conversion/common.py +++ b/dangerzone/conversion/common.py @@ -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