From 30fdda7a9eb475bea9562f96268efa677a732039 Mon Sep 17 00:00:00 2001 From: Konstantin Tyukalov <52399739+KonstantinTyukalov@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:13:55 +0400 Subject: [PATCH] Remove duplicate debug logs when using `task.exec*` wrappers (#1071) * Remove duplicate debug listeners * Bump version * update changelog --- node/CHANGELOG.md | 4 ++++ node/package-lock.json | 2 +- node/package.json | 2 +- node/task.ts | 12 ------------ 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/node/CHANGELOG.md b/node/CHANGELOG.md index 2323d84e1..ddb4d3282 100644 --- a/node/CHANGELOG.md +++ b/node/CHANGELOG.md @@ -2,6 +2,10 @@ ## 4.x +## 4.17.3 + +- Remove duplicate debug logs when using task.exec* wrappers - [#1071](https://github.com/microsoft/azure-pipelines-task-lib/pull/1071) + ## 4.17.2 - Fix ToolRunner stdline/errline events buffering - [#1055](https://github.com/microsoft/azure-pipelines-task-lib/pull/1055) diff --git a/node/package-lock.json b/node/package-lock.json index 28c52dbd7..01c3085b1 100644 --- a/node/package-lock.json +++ b/node/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-pipelines-task-lib", - "version": "4.17.2", + "version": "4.17.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/node/package.json b/node/package.json index aa98a9a4a..3073e290d 100644 --- a/node/package.json +++ b/node/package.json @@ -1,6 +1,6 @@ { "name": "azure-pipelines-task-lib", - "version": "4.17.2", + "version": "4.17.3", "description": "Azure Pipelines Task SDK", "main": "./task.js", "typings": "./task.d.ts", diff --git a/node/task.ts b/node/task.ts index 2ecd05f73..80c1d3543 100644 --- a/node/task.ts +++ b/node/task.ts @@ -1512,10 +1512,6 @@ export function rmRF(inputPath: string): void { */ export function execAsync(tool: string, args: any, options?: trm.IExecOptions): Promise { let tr: trm.ToolRunner = this.tool(tool); - tr.on('debug', (data: string) => { - debug(data); - }); - if (args) { if (args instanceof Array) { tr.arg(args); @@ -1540,10 +1536,6 @@ export function execAsync(tool: string, args: any, options?: trm.IExecOptions): */ export function exec(tool: string, args: any, options?: trm.IExecOptions): Q.Promise { let tr: trm.ToolRunner = this.tool(tool); - tr.on('debug', (data: string) => { - debug(data); - }); - if (args) { if (args instanceof Array) { tr.arg(args); @@ -1568,10 +1560,6 @@ export function exec(tool: string, args: any, options?: trm.IExecOptions): Q.Pro */ export function execSync(tool: string, args: string | string[], options?: trm.IExecSyncOptions): trm.IExecSyncResult { let tr: trm.ToolRunner = this.tool(tool); - tr.on('debug', (data: string) => { - debug(data); - }); - if (args) { if (args instanceof Array) { tr.arg(args);