Skip to content

Commit b39d245

Browse files
committed
Log parsing data string when using buffers
1 parent 922ee7c commit b39d245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/InputHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export class InputHandler extends Disposable implements IInputHandler {
546546

547547
// Log debug data, the log level gate is to prevent extra work in this hot path
548548
if (this._logService.logLevel <= LogLevelEnum.DEBUG) {
549-
this._logService.debug(`parsing data${typeof data === 'string' ? ` "${data}"` : ''}`, typeof data === 'string'
549+
this._logService.debug(`parsing data${typeof data === 'string' ? ` "${data}"` : ` "${Array.prototype.map.call(data, e => String.fromCharCode(e)).join('')}"`}`, typeof data === 'string'
550550
? data.split('').map(e => e.charCodeAt(0))
551551
: data
552552
);

0 commit comments

Comments
 (0)