From 7affa09e5e3ed7c0c1aac4d1c3c75729b5bae387 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 1 Apr 2024 19:43:14 -0400 Subject: [PATCH] Remove timeline marker Sentry reporting I'm 99% sure these timeouts are all due to bad network conditions --- .../Timeline/TimelineViewController.swift | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/Tusker/Screens/Timeline/TimelineViewController.swift b/Tusker/Screens/Timeline/TimelineViewController.swift index 3b6d0eb6..a4b83c14 100644 --- a/Tusker/Screens/Timeline/TimelineViewController.swift +++ b/Tusker/Screens/Timeline/TimelineViewController.swift @@ -387,16 +387,6 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro _ = try await mastodonController.run(req) } catch { stateRestorationLogger.error("TimelineViewController: failed to update timeline marker: \(String(describing: error))") - - #if canImport(Sentry) - if let error = error as? Client.Error, - case .networkError(_) = error.type { - return - } - let event = Event(error: error) - event.message = SentryMessage(formatted: "Failed to update timeline marker: \(String(describing: error))") - SentrySDK.capture(event: event) - #endif } } } @@ -592,16 +582,6 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro return true } catch { stateRestorationLogger.error("TimelineViewController: failed to load from timeline marker: \(String(describing: error))") - - #if canImport(Sentry) - if let error = error as? Client.Error, - case .networkError(_) = error.type { - return false - } - let event = Event(error: error) - event.message = SentryMessage(formatted: "Failed to load from timeline marker: \(String(describing: error))") - SentrySDK.capture(event: event) - #endif return false } }