-
Notifications
You must be signed in to change notification settings - Fork 271
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
Redundant Debug Logging for ExecSync #1069
Comments
@pbcahill, appreciate the alert. I'll review the matter and respond promptly. |
@pbcahill, I successfully replicated the problem using a custom script task that make a request to a URL via the curl utility. CmdLineV2: BashV3: PowershellV2: Both these wrappers add listeners Additionally, I'd like to point out that the 'silently' property does not impact the debug output. |
@pbcahill thanks for pointing this out! It's fixed in newest patch, |
Thank you @KonstantinTyukalov and @ivanduplenskikh for the very prompt responses and resolutions! I have tested the new version in my extensions and the duplicate debug log lines are no more. |
Environment
azure-pipelines-task-lib version: 4.17.2
Issue Description
Whenever using the
execSync
function, and have system.debug enabled for the pipeline run, every piece of the command being output as a separate debug line twice:That is the result from using
execSync
to run a curl command:Expected behaviour
I would expect whatever command is being executed to be debug logged on a single line. Also none of the debug lines should be duplicated.
Would also be nice to have an option for
execSync
to not debug log the command at all. The existingsilent
option only masks the regular console output.Actual behaviour
Each piece or argument of the command is output on a new debug line and duplicated. No way to alter this behavior or mask.
Logs
The text was updated successfully, but these errors were encountered: