Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit eb4a2ed

Browse files
committed
Mask before truncate.
1 parent 65be67e commit eb4a2ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/agent/feedback.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export class ServiceChannel extends events.EventEmitter implements cm.IServiceCh
231231
}
232232

233233
public queueConsoleLine(line: string): void {
234+
line = this.jobInfo.mask(line);
234235
if (line.length > 512) {
235236
line = line.substring(0, 509) + '...';
236237
}
@@ -240,6 +241,7 @@ export class ServiceChannel extends events.EventEmitter implements cm.IServiceCh
240241
}
241242

242243
public queueConsoleSection(line: string): void {
244+
line = this.jobInfo.mask(line);
243245
trace.enter('servicechannel:queueConsoleSection: ' + line);
244246
this._consoleQueue.section(line);
245247
}
@@ -511,11 +513,11 @@ export class WebConsoleQueue extends BaseQueue<string> {
511513
}
512514

513515
public section(line: string): void {
514-
this.push('[section] ' + this._jobInfo.mask(line));
516+
this.push('[section] ' + line);
515517
}
516518

517519
public push(line: string): void {
518-
super.push(this._jobInfo.mask(line));
520+
super.push(line);
519521
}
520522

521523
public _processQueue(values: string[], callback: (err: any) => void) {

0 commit comments

Comments
 (0)