Skip to content

Commit

Permalink
fix: proper debug log levels
Browse files Browse the repository at this point in the history
relates-to #343
  • Loading branch information
pmstss committed Jun 16, 2024
1 parent 18fafae commit d697d8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
);

Expand Down

0 comments on commit d697d8d

Please sign in to comment.