From 82e5e6c8102608cc951c534a897f655fc9825717 Mon Sep 17 00:00:00 2001 From: StarAppeal Date: Sat, 27 Sep 2025 01:24:43 +0200 Subject: [PATCH] refactor logger configuration and clean up test imports --- src/utils/logger.ts | 8 -------- tests/utils/verifyClient.test.ts | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/utils/logger.ts b/src/utils/logger.ts index 774ab31..3f46a5f 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -9,14 +9,6 @@ const logLevels = { debug: 4, }; -const logColors = { - error: "red", - warn: "yellow", - info: "green", - http: "magenta", - debug: "blue", -}; - const logFormat = winston.format.combine( winston.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston.format.errors({ stack: true }), diff --git a/tests/utils/verifyClient.test.ts b/tests/utils/verifyClient.test.ts index c6a4d2d..46b0a2d 100644 --- a/tests/utils/verifyClient.test.ts +++ b/tests/utils/verifyClient.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect, vi, beforeEach, afterEach, Mocked } from "vitest"; +import { describe, it, expect, vi, beforeEach, Mocked } from "vitest"; import type { IncomingMessage } from "node:http"; import { verifyClient } from "../../src/utils/verifyClient";