Skip to content

Commit 5269462

Browse files
committed
Only log character codes for verbose/trace
1 parent a1d8e96 commit 5269462

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/common/services/CoreService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,17 @@ export class CoreService extends Disposable implements ICoreService {
7575
}
7676

7777
// Fire onData API
78-
this._logService.debug(`sending data "${data}"`, () => data.split('').map(e => e.charCodeAt(0)));
78+
this._logService.debug(`sending data "${data}"`);
79+
this._logService.trace(`sending data "${data}", and their character codes:`, () => data.split('').map(e => e.charCodeAt(0)));
7980
this._onData.fire(data);
8081
}
8182

8283
public triggerBinaryEvent(data: string): void {
8384
if (this._optionsService.rawOptions.disableStdin) {
8485
return;
8586
}
86-
this._logService.debug(`sending binary "${data}"`, () => data.split('').map(e => e.charCodeAt(0)));
87+
this._logService.debug(`sending binary "${data}"`);
88+
this._logService.trace(`sending binary "${data}", and their character codes:`, () => data.split('').map(e => e.charCodeAt(0)));
8789
this._onBinary.fire(data);
8890
}
8991
}

0 commit comments

Comments
 (0)