Skip to content

Commit

Permalink
Remove duplicate debug logs when using task.exec* wrappers (#1071)
Browse files Browse the repository at this point in the history
* Remove duplicate debug listeners

* Bump version

* update changelog
  • Loading branch information
KonstantinTyukalov authored Sep 30, 2024
1 parent 89c945c commit 30fdda7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 4 additions & 0 deletions node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 0 additions & 12 deletions node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1512,10 +1512,6 @@ export function rmRF(inputPath: string): void {
*/
export function execAsync(tool: string, args: any, options?: trm.IExecOptions): Promise<number> {
let tr: trm.ToolRunner = this.tool(tool);
tr.on('debug', (data: string) => {
debug(data);
});

if (args) {
if (args instanceof Array) {
tr.arg(args);
Expand All @@ -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<number> {
let tr: trm.ToolRunner = this.tool(tool);
tr.on('debug', (data: string) => {
debug(data);
});

if (args) {
if (args instanceof Array) {
tr.arg(args);
Expand All @@ -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);
Expand Down

0 comments on commit 30fdda7

Please sign in to comment.