From 8658b1e7c70c9d6167ce9192ee230a6786f09141 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 3 Jul 2024 18:25:44 -0700 Subject: [PATCH] linting --- collector/utils/logger/index.js | 8 +++++--- server/utils/logger/index.js | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/collector/utils/logger/index.js b/collector/utils/logger/index.js index 92878e68..95c4764f 100644 --- a/collector/utils/logger/index.js +++ b/collector/utils/logger/index.js @@ -5,7 +5,8 @@ class Logger { static _instance; constructor() { if (Logger._instance) return Logger._instance; - this.logger = process.env.NODE_ENV === 'production' ? this.getWinstonLogger() : console; + this.logger = + process.env.NODE_ENV === "production" ? this.getWinstonLogger() : console; Logger._instance = this; } @@ -19,8 +20,9 @@ class Logger { winston.format.colorize(), winston.format.printf( ({ level, message, service, origin = "" }) => { - return `\x1b[36m[${service}]\x1b[0m${origin ? `\x1b[33m[${origin}]\x1b[0m` : "" - } ${level}: ${message}`; + return `\x1b[36m[${service}]\x1b[0m${ + origin ? `\x1b[33m[${origin}]\x1b[0m` : "" + } ${level}: ${message}`; } ) ), diff --git a/server/utils/logger/index.js b/server/utils/logger/index.js index a0a256ef..66d20a2a 100644 --- a/server/utils/logger/index.js +++ b/server/utils/logger/index.js @@ -5,7 +5,8 @@ class Logger { static _instance; constructor() { if (Logger._instance) return Logger._instance; - this.logger = process.env.NODE_ENV === 'production' ? this.getWinstonLogger() : console; + this.logger = + process.env.NODE_ENV === "production" ? this.getWinstonLogger() : console; Logger._instance = this; }