From 73a7615b7b26ca27fe67ed35d0127fa83dc9848e Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:00:33 +0100 Subject: [PATCH] Log the crash event's ID to see if duplicate logs are for the same event. (#1350) --- ElementX/Sources/Services/BugReport/BugReportService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Services/BugReport/BugReportService.swift b/ElementX/Sources/Services/BugReport/BugReportService.swift index ac4ff8d63..0e0f60cad 100644 --- a/ElementX/Sources/Services/BugReport/BugReportService.swift +++ b/ElementX/Sources/Services/BugReport/BugReportService.swift @@ -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 } }