Skip to content

Commit

Permalink
Merge pull request #1924 from Infomaniak/sentry-notifications
Browse files Browse the repository at this point in the history
Remove `reason` in `sendFailedNotification()` to dissociate Sentries
  • Loading branch information
KevinBoulongne committed Jun 19, 2024
2 parents c93bb2f + 2eba450 commit ee60d35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,14 @@ object SentryDebug {

scope.level = sentryLevel

scope.setTag("reason", reason)
scope.setExtra("userId", "${userId?.toString()}")
scope.setExtra("currentUserId", "[${AccountUtils.currentUserId}]")
scope.setExtra("mailboxId", "${mailboxId?.toString()}")
scope.setExtra("mailbox.email", "[${mailbox?.email}]")
scope.setExtra("currentMailboxEmail", "[${AccountUtils.currentMailboxEmail}]")
scope.setExtra("messageUid", "$messageUid")

val message = "We received a Notification, but we failed to show it"
val message = "Failed Notif : $reason"

throwable?.let {
scope.setExtra("message", message)
Expand Down

0 comments on commit ee60d35

Please sign in to comment.