From 4a8a0a03ea3b5e0b0d9121925472ea98080baab3 Mon Sep 17 00:00:00 2001 From: Yuzuki Aida Date: Mon, 27 May 2024 15:24:16 +0900 Subject: [PATCH] Add levels --- apps/push-serverless/src/index.ts | 6 +++++- apps/push/src/index.ts | 6 +++++- apps/server/src/index.ts | 6 +++++- apps/video/src/index.ts | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/apps/push-serverless/src/index.ts b/apps/push-serverless/src/index.ts index 179250a0..e5988b50 100644 --- a/apps/push-serverless/src/index.ts +++ b/apps/push-serverless/src/index.ts @@ -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 }); } diff --git a/apps/push/src/index.ts b/apps/push/src/index.ts index 0725646d..9676fd87 100644 --- a/apps/push/src/index.ts +++ b/apps/push/src/index.ts @@ -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 }); } diff --git a/apps/server/src/index.ts b/apps/server/src/index.ts index 946bc674..44aedeac 100644 --- a/apps/server/src/index.ts +++ b/apps/server/src/index.ts @@ -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 }); } diff --git a/apps/video/src/index.ts b/apps/video/src/index.ts index 688a53ab..8a36fe16 100644 --- a/apps/video/src/index.ts +++ b/apps/video/src/index.ts @@ -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 }); }