Skip to content

Commit 86c1c99

Browse files
code-asherkylecarbs
authored andcommitted
Remove extra spaces in front of logger tags
1 parent a33d692 commit 86c1c99

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/logger/src/logger.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class ServerFormatter extends Formatter {
211211
name += " ";
212212
}
213213
this.format += "\u001B[1m";
214-
this.format += `\u001B[38;2;${r};${g};${b}m ${name} \u001B[0m`;
214+
this.format += `\u001B[38;2;${r};${g};${b}m${name} \u001B[0m`;
215215
}
216216

217217
public push(arg: any, color?: string, weight?: string): void { // tslint:disable-line no-any
@@ -373,7 +373,6 @@ export class Logger {
373373
// field2 (type)?: value
374374
this._formatter.tag(options.type.toUpperCase(), options.tagColor);
375375
if (this.name && this.nameColor) {
376-
this._formatter.push(" ");
377376
this._formatter.tag(this.name.toUpperCase(), this.nameColor);
378377
}
379378
this._formatter.push(options.message);

packages/protocol/src/browser/command.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export interface Socket {
122122
emit(event: "end"): boolean;
123123
}
124124

125-
126125
export class ServerSocket extends events.EventEmitter implements Socket {
127126

128127
public writable: boolean = true;
@@ -214,4 +213,4 @@ export class ServerSocket extends events.EventEmitter implements Socket {
214213
public setDefaultEncoding(encoding: string): this {
215214
throw new Error("Method not implemented.");
216215
}
217-
}
216+
}

0 commit comments

Comments
 (0)