From 2eba450b50cc5b8d48550b207323bff6bf51c3d8 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Wed, 19 Jun 2024 08:49:57 +0200 Subject: [PATCH] Remove `reason` in `sendFailedNotification()` to dissociate Sentries, to better see what's happening --- app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt b/app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt index 45c7f9c8b6..8a8346a642 100644 --- a/app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt +++ b/app/src/main/java/com/infomaniak/mail/utils/SentryDebug.kt @@ -148,7 +148,6 @@ object SentryDebug { scope.level = sentryLevel - scope.setTag("reason", reason) scope.setExtra("userId", "${userId?.toString()}") scope.setExtra("currentUserId", "[${AccountUtils.currentUserId}]") scope.setExtra("mailboxId", "${mailboxId?.toString()}") @@ -156,7 +155,7 @@ object SentryDebug { 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)