Move verbose logs in InputHandler to debug level

This commit is contained in:
Daniel Imms
2019-07-24 12:21:10 -07:00
parent cb094b27a6
commit 752243d95f
+11 -11
View File
@@ -79,7 +79,7 @@ class DECRQSS implements IDcsHandler {
return this._coreService.triggerDataEvent(`${C0.ESC}P1$r${style} q${C0.ESC}\\`); return this._coreService.triggerDataEvent(`${C0.ESC}P1$r${style} q${C0.ESC}\\`);
default: default:
// invalid: DCS 0 $ r Pt ST (xterm) // 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}\\`); this._coreService.triggerDataEvent(`${C0.ESC}P0$r${C0.ESC}\\`);
} }
} }
@@ -144,16 +144,16 @@ export class InputHandler extends Disposable implements IInputHandler {
* custom fallback handlers * custom fallback handlers
*/ */
this._parser.setCsiHandlerFallback((collect: string, params: IParams, flag: number) => { 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._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._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._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; // this.cursorBlink = true;
break; break;
case 66: case 66:
this._logService.info('Serial port requested application keypad.'); this._logService.debug('Serial port requested application keypad.');
this._terminal.applicationKeypad = true; this._terminal.applicationKeypad = true;
if (this._terminal.viewport) { if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea(); this._terminal.viewport.syncScrollArea();
@@ -1296,7 +1296,7 @@ export class InputHandler extends Disposable implements IInputHandler {
if (this._selectionService) { if (this._selectionService) {
this._selectionService.disable(); this._selectionService.disable();
} }
this._logService.info('Binding to mouse events.'); this._logService.debug('Binding to mouse events.');
break; break;
case 1004: // send focusin/focusout events case 1004: // send focusin/focusout events
// focusin: ^[[I // focusin: ^[[I
@@ -1471,7 +1471,7 @@ export class InputHandler extends Disposable implements IInputHandler {
// this.cursorBlink = false; // this.cursorBlink = false;
break; break;
case 66: case 66:
this._logService.info('Switching back to normal keypad.'); this._logService.debug('Switching back to normal keypad.');
this._terminal.applicationKeypad = false; this._terminal.applicationKeypad = false;
if (this._terminal.viewport) { if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea(); 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 &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
attr.bg |= DEFAULT_ATTR_DATA.bg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK); attr.bg |= DEFAULT_ATTR_DATA.bg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK);
} else { } 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. * Enables the numeric keypad to send application sequences to the host.
*/ */
public keypadApplicationMode(): void { public keypadApplicationMode(): void {
this._logService.info('Serial port requested application keypad.'); this._logService.debug('Serial port requested application keypad.');
this._terminal.applicationKeypad = true; this._terminal.applicationKeypad = true;
if (this._terminal.viewport) { if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea(); 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. * Enables the keypad to send numeric characters to the host.
*/ */
public keypadNumericMode(): void { public keypadNumericMode(): void {
this._logService.info('Switching back to normal keypad.'); this._logService.debug('Switching back to normal keypad.');
this._terminal.applicationKeypad = false; this._terminal.applicationKeypad = false;
if (this._terminal.viewport) { if (this._terminal.viewport) {
this._terminal.viewport.syncScrollArea(); this._terminal.viewport.syncScrollArea();