Skip to content

Redundant Debug Logging for ExecSync #1069

Closed
@pbcahill

Description

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:

{1AA92E14-9AFE-49B9-AEA4-8EC63D142470}

That is the result from using execSync to run a curl command:
{54205DC6-AB3A-4680-9A92-6D0C3CF5BA08}

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 existing silent 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

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