Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an option to control the verbosity of dexec.Cmd #18

Open
thallgren opened this issue May 20, 2021 · 1 comment
Open

Provide an option to control the verbosity of dexec.Cmd #18

thallgren opened this issue May 20, 2021 · 1 comment

Comments

@thallgren
Copy link
Contributor

The logging of dexec.Cmd() can be turned on or off using the DisableLogging flag, but there is no way to control how much output the command generates and it's generally very verbose. In many situations, all the reader of a log wants to know is if the command executed and if something went wrong.

I would like a way to control this so that only the command string is logged and, unless there's an error (output to stderr or non-zero exit code) nothing else.

@LukeShu
Copy link
Contributor

LukeShu commented Aug 3, 2021

See the discussion at #22 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants