From 1be403e60afa6ebeb16dcef8fe1f6518c2911bfd Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 10 Jun 2022 14:06:28 +0300 Subject: [PATCH] Disable sentry event sending on debug builds --- ElementX/Sources/Services/BugReport/BugReportService.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ElementX/Sources/Services/BugReport/BugReportService.swift b/ElementX/Sources/Services/BugReport/BugReportService.swift index 1d2a8e32e..c8febdc6f 100644 --- a/ElementX/Sources/Services/BugReport/BugReportService.swift +++ b/ElementX/Sources/Services/BugReport/BugReportService.swift @@ -40,6 +40,10 @@ class BugReportService: BugReportServiceProtocol { // enable SentrySDK SentrySDK.start { options in + #if DEBUG + options.enabled = false + #endif + options.dsn = sentryEndpoint // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.