Skip to content

Commit

Permalink
fix: proper debug log levels (#346)
Browse files Browse the repository at this point in the history
relates-to #343
  • Loading branch information
pmstss authored Jun 16, 2024
1 parent 18fafae commit c66c884
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 c66c884

Please sign in to comment.