Skip to content

Commit

Permalink
Merge pull request #15087 from wordpress-mobile/fix/sentry-timestamp-…
Browse files Browse the repository at this point in the history
…issue

Use a default timestamp for custom Sentry event
  • Loading branch information
jkmassel authored Oct 13, 2020
2 parents 33fb2ea + a2e9db3 commit 6895ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WordPress/Classes/Utility/Logging/SentryStartupEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ extension CrashLogging {
let event = Event(level: .error)
event.message = error.localizedDescription
event.extra = userInfo ?? (error as NSError).userInfo
event.timestamp = Date()

Client.shared?.snapshotStacktrace {
Client.shared?.appendStacktrace(to: event)
Expand Down

0 comments on commit 6895ab8

Please sign in to comment.