Skip to content

Commit

Permalink
Merge pull request #21 from morenod/add_debug_subcommand
Browse files Browse the repository at this point in the history
dump log file when there is any error executing a subcommand
  • Loading branch information
morenod authored Nov 24, 2023
2 parents 6cb23fd + ebd7a07 commit 275eedf
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 275eedf

Please sign in to comment.