From 49c8cb01128d0f4827e9d29b82518497d3ea04a9 Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Sat, 22 May 2021 11:59:35 -0400 Subject: [PATCH] Capture some issues w/ SentrySDK --- JellyfinPlayer/ContentView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/JellyfinPlayer/ContentView.swift b/JellyfinPlayer/ContentView.swift index f77b2ade..97fa5cb5 100644 --- a/JellyfinPlayer/ContentView.swift +++ b/JellyfinPlayer/ContentView.swift @@ -206,8 +206,9 @@ struct ContentView: View { SentrySDK.start { options in options.dsn = "https://75ac77d6af4d406eb989f3d8ef0f119f@o513670.ingest.sentry.io/5778242" options.debug = false // Enabled debug when first installing is always helpful + options.tracesSampleRate = 1.0 options.releaseName = "ios-" + (Bundle.main.infoDictionary?["CFBundleVersion"] as! String); - options.enableOutOfMemoryTracking = false + options.enableOutOfMemoryTracking = true } let privacyConfig = Dynatrace.userPrivacyOptions() @@ -295,7 +296,8 @@ struct ContentView: View { } break - case .failure( _): + case .failure(let error): + SentrySDK.capture(error: error) break } _isLoading.wrappedValue = false; @@ -309,6 +311,7 @@ struct ContentView: View { _isLoading.wrappedValue = false; _isSignInErrored.wrappedValue = true; } else { + SentrySDK.capture(error: error) _isLoading.wrappedValue = false; _isNetworkErrored.wrappedValue = true; }