From 42d3d573cb5a7f8cef8c5181cbe9b388cdbeacb9 Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 4 Mar 2021 17:24:14 -0500 Subject: [PATCH] tweak(phone/sentry): Only enable in prod --- phone/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phone/src/index.tsx b/phone/src/index.tsx index ef8298a..914dfa4 100644 --- a/phone/src/index.tsx +++ b/phone/src/index.tsx @@ -10,8 +10,8 @@ import PhoneConfig from './config/default.json'; import { PhoneContainer } from './PhoneContainer'; import attachMockNuiEvent from './os/debug/AttachMockNuiEvent'; -// Enable Sentry when config setting is true -if (PhoneConfig.SentryErrorMetrics) { +// Enable Sentry when config setting is true and when in prod +if (PhoneConfig.SentryErrorMetrics && process.env.NODE_ENV !== 'development') { Sentry.init({ dsn: 'https://71fff4e8f11543fa8dbe7acd0f94fb5d@o478949.ingest.sentry.io/5581619', autoSessionTracking: true,