From d697d8d0663aa85ea56d25f9234b38ea59a7eefa Mon Sep 17 00:00:00 2001 From: Viachaslau Tyshkavets Date: Sun, 16 Jun 2024 09:57:14 +0400 Subject: [PATCH] fix: proper debug log levels relates-to #343 --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a19fcbd7..4764833b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -162,7 +162,10 @@ async function bootstrap() { AppModule, new FastifyAdapter(server), { - logger: /*process.env.NODE_ENV === 'production' ? ['error'] :*/ ['debug'], + logger: + process.env.NODE_ENV === 'production' + ? ['error'] + : ['debug', 'log', 'warn', 'error'], }, );