From ebd7a078cf10b23c41b7fe446fca79c69637a2b0 Mon Sep 17 00:00:00 2001 From: Docs Date: Thu, 23 Nov 2023 13:06:06 +0100 Subject: [PATCH] dump log file when there is any error executing a subcommand --- libs/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/utils.py b/libs/utils.py index 542b200..1f9b397 100644 --- a/libs/utils.py +++ b/libs/utils.py @@ -79,6 +79,7 @@ def subprocess_exec(self, command, output_file=None, extra_params={}, log_output self.logging.error(f"Failed to execute command: {command}") self.logging.error(stdout if stdout else "") self.logging.error(stderr if stderr else "") + self.logging.error(log_file if output_file else "") return process.returncode, stdout, stderr except Exception as err: self.logging.error(f"Error executing command: {command}")