From 752243d95f620df7a31ab3b86c29d9bc021ebbef Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 24 Jul 2019 12:21:10 -0700 Subject: [PATCH] Move verbose logs in InputHandler to debug level --- src/InputHandler.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/InputHandler.ts b/src/InputHandler.ts index cc767a16..f47085d4 100644 --- a/src/InputHandler.ts +++ b/src/InputHandler.ts @@ -79,7 +79,7 @@ class DECRQSS implements IDcsHandler { return this._coreService.triggerDataEvent(`${C0.ESC}P1$r${style} q${C0.ESC}\\`); default: // invalid: DCS 0 $ r Pt ST (xterm) - this._logService.error('Unknown DCS $q %s', data); + this._logService.debug('Unknown DCS $q %s', data); this._coreService.triggerDataEvent(`${C0.ESC}P0$r${C0.ESC}\\`); } } @@ -144,16 +144,16 @@ export class InputHandler extends Disposable implements IInputHandler { * custom fallback handlers */ this._parser.setCsiHandlerFallback((collect: string, params: IParams, flag: number) => { - this._logService.error('Unknown CSI code: ', { collect, params: params.toArray(), flag: String.fromCharCode(flag) }); + this._logService.debug('Unknown CSI code: ', { collect, params: params.toArray(), flag: String.fromCharCode(flag) }); }); this._parser.setEscHandlerFallback((collect: string, flag: number) => { - this._logService.error('Unknown ESC code: ', { collect, flag: String.fromCharCode(flag) }); + this._logService.debug('Unknown ESC code: ', { collect, flag: String.fromCharCode(flag) }); }); this._parser.setExecuteHandlerFallback((code: number) => { - this._logService.error('Unknown EXECUTE code: ', { code }); + this._logService.debug('Unknown EXECUTE code: ', { code }); }); this._parser.setOscHandlerFallback((identifier: number, data: string) => { - this._logService.error('Unknown OSC code: ', { identifier, data }); + this._logService.debug('Unknown OSC code: ', { identifier, data }); }); /** @@ -1268,7 +1268,7 @@ export class InputHandler extends Disposable implements IInputHandler { // this.cursorBlink = true; break; case 66: - this._logService.info('Serial port requested application keypad.'); + this._logService.debug('Serial port requested application keypad.'); this._terminal.applicationKeypad = true; if (this._terminal.viewport) { this._terminal.viewport.syncScrollArea(); @@ -1296,7 +1296,7 @@ export class InputHandler extends Disposable implements IInputHandler { if (this._selectionService) { this._selectionService.disable(); } - this._logService.info('Binding to mouse events.'); + this._logService.debug('Binding to mouse events.'); break; case 1004: // send focusin/focusout events // focusin: ^[[I @@ -1471,7 +1471,7 @@ export class InputHandler extends Disposable implements IInputHandler { // this.cursorBlink = false; break; case 66: - this._logService.info('Switching back to normal keypad.'); + this._logService.debug('Switching back to normal keypad.'); this._terminal.applicationKeypad = false; if (this._terminal.viewport) { this._terminal.viewport.syncScrollArea(); @@ -1762,7 +1762,7 @@ export class InputHandler extends Disposable implements IInputHandler { attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK); attr.bg |= DEFAULT_ATTR_DATA.bg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK); } else { - this._logService.error('Unknown SGR attribute: %d.', p); + this._logService.debug('Unknown SGR attribute: %d.', p); } } } @@ -1976,7 +1976,7 @@ export class InputHandler extends Disposable implements IInputHandler { * Enables the numeric keypad to send application sequences to the host. */ public keypadApplicationMode(): void { - this._logService.info('Serial port requested application keypad.'); + this._logService.debug('Serial port requested application keypad.'); this._terminal.applicationKeypad = true; if (this._terminal.viewport) { this._terminal.viewport.syncScrollArea(); @@ -1989,7 +1989,7 @@ export class InputHandler extends Disposable implements IInputHandler { * Enables the keypad to send numeric characters to the host. */ public keypadNumericMode(): void { - this._logService.info('Switching back to normal keypad.'); + this._logService.debug('Switching back to normal keypad.'); this._terminal.applicationKeypad = false; if (this._terminal.viewport) { this._terminal.viewport.syncScrollArea();