Skip to content

Commit

Permalink
fix: set min level to info if debug is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed May 24, 2024
1 parent 0611ea5 commit 5d3ea9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { v4 as uuidv4 } from 'uuid';
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (config: ConfigService) => {
const level = config.get('general.debug') ? 'debug' : 'warn';
const level = config.get('general.debug') ? 'debug' : 'info';
return {
level,
pinoHttp: {
Expand Down

0 comments on commit 5d3ea9b

Please sign in to comment.