Remove timeline marker Sentry reporting

I'm 99% sure these timeouts are all due to bad network conditions
This commit is contained in:
Shadowfacts 2024-04-01 19:43:14 -04:00
parent 7435d02f6e
commit 7affa09e5e
1 changed files with 0 additions and 20 deletions

View File

@ -387,16 +387,6 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
_ = try await mastodonController.run(req) _ = try await mastodonController.run(req)
} catch { } catch {
stateRestorationLogger.error("TimelineViewController: failed to update timeline marker: \(String(describing: error))") 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 return true
} catch { } catch {
stateRestorationLogger.error("TimelineViewController: failed to load from timeline marker: \(String(describing: error))") 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 return false
} }
} }