Skip to content

Add optional :logger to LinuxAdmin.run and run! #56

@jrafanie

Description

@jrafanie

This should do the following:

  1. rescue any exceptions
  2. log the command, minus any params
  3. log the output as info
  4. log the exit code as error when non-zero
  5. log standard error as error if exit code is non-zero, warn otherwise.
  6. re-raise the existing exception

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions