code: def log(self, output, exit_status):
          
          if exit_status != 0:
              self.logger.error(f'Error running command! Exit status: {exit_status}, {output}')
  
          return exit_status
docs: Log given CompletedProcess and return exit status code.