Skip to content

Commit

Permalink
dump log file when there is any error executing a subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Docs committed Nov 23, 2023
1 parent 6cb23fd commit ebd7a07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit ebd7a07

Please sign in to comment.