Skip to content

Commit 30fdda7

Browse files
authored
Remove duplicate debug logs when using task.exec* wrappers (#1071)
* Remove duplicate debug listeners * Bump version * update changelog
1 parent 89c945c commit 30fdda7

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

node/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 4.x
44

5+
## 4.17.3
6+
7+
- Remove duplicate debug logs when using task.exec* wrappers - [#1071](https://github.com/microsoft/azure-pipelines-task-lib/pull/1071)
8+
59
## 4.17.2
610

711
- Fix ToolRunner stdline/errline events buffering - [#1055](https://github.com/microsoft/azure-pipelines-task-lib/pull/1055)

node/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "4.17.2",
3+
"version": "4.17.3",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

node/task.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,10 +1512,6 @@ export function rmRF(inputPath: string): void {
15121512
*/
15131513
export function execAsync(tool: string, args: any, options?: trm.IExecOptions): Promise<number> {
15141514
let tr: trm.ToolRunner = this.tool(tool);
1515-
tr.on('debug', (data: string) => {
1516-
debug(data);
1517-
});
1518-
15191515
if (args) {
15201516
if (args instanceof Array) {
15211517
tr.arg(args);
@@ -1540,10 +1536,6 @@ export function execAsync(tool: string, args: any, options?: trm.IExecOptions):
15401536
*/
15411537
export function exec(tool: string, args: any, options?: trm.IExecOptions): Q.Promise<number> {
15421538
let tr: trm.ToolRunner = this.tool(tool);
1543-
tr.on('debug', (data: string) => {
1544-
debug(data);
1545-
});
1546-
15471539
if (args) {
15481540
if (args instanceof Array) {
15491541
tr.arg(args);
@@ -1568,10 +1560,6 @@ export function exec(tool: string, args: any, options?: trm.IExecOptions): Q.Pro
15681560
*/
15691561
export function execSync(tool: string, args: string | string[], options?: trm.IExecSyncOptions): trm.IExecSyncResult {
15701562
let tr: trm.ToolRunner = this.tool(tool);
1571-
tr.on('debug', (data: string) => {
1572-
debug(data);
1573-
});
1574-
15751563
if (args) {
15761564
if (args instanceof Array) {
15771565
tr.arg(args);

0 commit comments

Comments
 (0)