Skip to content

Add hook property to control command output logging #680

Description

@moorereason

webhook currently logs command output on every request. When using include-command-output-in-response to send a complex response body, it may not be desirable to log the command output. See #676 (comment).

Proposal

Add a boolean disable-command-output-logging property. The default is false so that we're backward compatible.

This property would only affect "success" logging (as seen below). Errors would still be logged.

log.Printf("[%s] command output: %s\n", r.ID, out)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions