Skip to content

Commit

Permalink
src/config: Allow logging only for errors and warns
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Jan 6, 2024
1 parent b3c1203 commit 5ee82d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/config/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SeverityLevel } from '@sentry/node'

/**
* Be sure to add `process.env` vars in validation schema at ./validation.config.ts
*/
Expand All @@ -13,7 +15,7 @@ export default () => ({
environment: process.env.APP_ENV,
debug: false,
enabled: process.env.APP_ENV !== 'development',
logLevels: ['debug'],
logLevels: ['error', 'warn'] as SeverityLevel[],
tracesSampleRate: 1.0,
},
sendgrid: {
Expand Down

0 comments on commit 5ee82d2

Please sign in to comment.