From 86c1c9993e1e9ec98ed330b30ae1900014f452d2 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 22 Jan 2019 12:52:24 -0600 Subject: [PATCH] Remove extra spaces in front of logger tags --- packages/logger/src/logger.ts | 3 +-- packages/protocol/src/browser/command.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/logger/src/logger.ts b/packages/logger/src/logger.ts index 641703075..d5ff3ce18 100644 --- a/packages/logger/src/logger.ts +++ b/packages/logger/src/logger.ts @@ -211,7 +211,7 @@ export class ServerFormatter extends Formatter { name += " "; } this.format += "\u001B[1m"; - this.format += `\u001B[38;2;${r};${g};${b}m ${name} \u001B[0m`; + this.format += `\u001B[38;2;${r};${g};${b}m${name} \u001B[0m`; } public push(arg: any, color?: string, weight?: string): void { // tslint:disable-line no-any @@ -373,7 +373,6 @@ export class Logger { // field2 (type)?: value this._formatter.tag(options.type.toUpperCase(), options.tagColor); if (this.name && this.nameColor) { - this._formatter.push(" "); this._formatter.tag(this.name.toUpperCase(), this.nameColor); } this._formatter.push(options.message); diff --git a/packages/protocol/src/browser/command.ts b/packages/protocol/src/browser/command.ts index beca830b2..40521a742 100644 --- a/packages/protocol/src/browser/command.ts +++ b/packages/protocol/src/browser/command.ts @@ -122,7 +122,6 @@ export interface Socket { emit(event: "end"): boolean; } - export class ServerSocket extends events.EventEmitter implements Socket { public writable: boolean = true; @@ -214,4 +213,4 @@ export class ServerSocket extends events.EventEmitter implements Socket { public setDefaultEncoding(encoding: string): this { throw new Error("Method not implemented."); } -} \ No newline at end of file +}