mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +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.tracesSampleRate = 1.0
|
||||||
|
|
||||||
options.beforeSend = { event in
|
options.beforeSend = { event in
|
||||||
MXLog.error("Sentry detected crash: \(event)")
|
MXLog.error("Sentry detected crash: \(event.eventId.sentryIdString)")
|
||||||
return event
|
return event
|
||||||
}
|
}
|
||||||
|
|
||||||
options.onCrashedLastRun = { [weak self] event in
|
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
|
self?.lastCrashEventId = event.eventId.sentryIdString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user