From 40403255245f4bb6b38e2a60d68105a058c74c84 Mon Sep 17 00:00:00 2001 From: Steve Korshakov Date: Tue, 26 Aug 2025 20:48:27 -0700 Subject: [PATCH] fix: better logger --- sources/app/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/app/api.ts b/sources/app/api.ts index b4d2b53..d40e7d6 100644 --- a/sources/app/api.ts +++ b/sources/app/api.ts @@ -63,6 +63,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> // Start API const app = fastify({ logger: true, + loggerInstance: logger, bodyLimit: 1024 * 1024 * 100, // 100MB }); app.register(import('@fastify/cors'), { @@ -2501,5 +2502,5 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }> await io.close(); }); - return { app, io }; + return { app: app as unknown as FastifyInstance, io }; } \ No newline at end of file