Skip to content

Commit a8fabcf

Browse files
authored
Merge pull request #5420 from xtermjs/anthonykim1/charCodesForVerbose
Only log character codes for trace log
2 parents f4badda + 67cf259 commit a8fabcf

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 (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 (codes)`, () => data.split('').map(e => e.charCodeAt(0)));
8789
this._onBinary.fire(data);
8890
}
8991
}

0 commit comments

Comments
 (0)