Skip to content
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

Remove duplicate debug logs when using task.exec* wrappers #1071

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading