Skip to content

ShellCmd should not be logged to Info #128

@cazeaux

Description

@cazeaux

Feature Request

The function shell sends the full content of script to Info logs, and it cannot be disabled. When used with some big scripts, it creates a huge flow of logs which can overwhelm log storage. But scripts are not useful as Info logs.

Besides, the stderr/stdout which can be very useful for troubleshooting are sent to Debug logs.

What problem are you facing?

Too many useless Info logs.

How could this Function help solve your problem?

The proposition is to invert the logs:

  • shellCmd sent to Debug logs
  • stderr/stdout sent to Info logs

The PR proposes this implementation. I am of course open to any other suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions