mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Log the crash event's ID to see if duplicate logs are for the same event. (#1350)
This commit is contained in:
@@ -69,12 +69,12 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
||||
options.tracesSampleRate = 1.0
|
||||
|
||||
options.beforeSend = { event in
|
||||
MXLog.error("Sentry detected crash: \(event)")
|
||||
MXLog.error("Sentry detected crash: \(event.eventId.sentryIdString)")
|
||||
return event
|
||||
}
|
||||
|
||||
options.onCrashedLastRun = { [weak self] event in
|
||||
MXLog.error("Sentry detected application was crashed: \(event)")
|
||||
MXLog.error("Sentry detected application was crashed: \(event.eventId.sentryIdString)")
|
||||
self?.lastCrashEventId = event.eventId.sentryIdString
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user