Skip to content

Commit

Permalink
Merge pull request #285 from DEFRA/request-logger-dev
Browse files Browse the repository at this point in the history
Ensure request logger only logs errors in development
  • Loading branch information
colinrotherham committed Jul 29, 2024
2 parents 7b31919 + 6d6b3c1 commit 2c5b1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const config = convict({
logLevel: {
doc: 'Logging level',
format: ['fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent'],
default: 'info',
default: process.env.NODE_ENV === 'development' ? 'error' : 'info',
env: 'LOG_LEVEL'
},

Expand Down

0 comments on commit 2c5b1a3

Please sign in to comment.