Merge pull request #5420 from xtermjs/anthonykim1/charCodesForVerbose

Only log character codes for trace log
This commit is contained in:
Daniel Imms
2025-10-17 11:39:21 -07:00
committed by GitHub
+4 -2
View File
@@ -75,7 +75,8 @@ export class CoreService extends Disposable implements ICoreService {
}
// Fire onData API
this._logService.debug(`sending data "${data}"`, () => data.split('').map(e => e.charCodeAt(0)));
this._logService.debug(`sending data "${data}"`);
this._logService.trace(`sending data (codes)`, () => data.split('').map(e => e.charCodeAt(0)));
this._onData.fire(data);
}
@@ -83,7 +84,8 @@ export class CoreService extends Disposable implements ICoreService {
if (this._optionsService.rawOptions.disableStdin) {
return;
}
this._logService.debug(`sending binary "${data}"`, () => data.split('').map(e => e.charCodeAt(0)));
this._logService.debug(`sending binary "${data}"`);
this._logService.trace(`sending binary (codes)`, () => data.split('').map(e => e.charCodeAt(0)));
this._onBinary.fire(data);
}
}