Skip to content

Commit

Permalink
Add levels
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed May 27, 2024
1 parent bc6efe2 commit 4a8a0a0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion apps/push-serverless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ const dsn = process.env.SENTRY_DSN;
if (dsn) {
Sentry.init({
dsn,
integrations: [Sentry.captureConsoleIntegration()],
integrations: [
Sentry.captureConsoleIntegration({
levels: ['error', 'warn']
})
],
tracesSampleRate: 1.0
});
}
Expand Down
6 changes: 5 additions & 1 deletion apps/push/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const dsn = process.env.SENTRY_DSN;
if (dsn) {
Sentry.init({
dsn,
integrations: [Sentry.captureConsoleIntegration()],
integrations: [
Sentry.captureConsoleIntegration({
levels: ['error', 'warn']
})
],
tracesSampleRate: 1.0
});
}
Expand Down
6 changes: 5 additions & 1 deletion apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ const dsn = process.env.SENTRY_DSN;
if (dsn) {
Sentry.init({
dsn,
integrations: [Sentry.captureConsoleIntegration()],
integrations: [
Sentry.captureConsoleIntegration({
levels: ['error', 'warn']
})
],
tracesSampleRate: 1.0
});
}
Expand Down
6 changes: 5 additions & 1 deletion apps/video/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ const dsn = process.env.SENTRY_DSN;
if (dsn) {
Sentry.init({
dsn,
integrations: [Sentry.captureConsoleIntegration()],
integrations: [
Sentry.captureConsoleIntegration({
levels: ['error', 'warn']
})
],
tracesSampleRate: 1.0
});
}
Expand Down

0 comments on commit 4a8a0a0

Please sign in to comment.