mirror of
https://github.com/ProtonMail/android-mail.git
synced 2026-05-15 09:50:40 +00:00
Remove unnecessary logging to Sentry on event failures
ET-5812
This commit is contained in:
+3
-3
@@ -41,21 +41,21 @@ class AppEventObserver @Inject constructor(
|
||||
when (event) {
|
||||
is AppEvent.MessageSent -> {
|
||||
trackFirstMessageSentEvent().onLeft { error ->
|
||||
Timber.e("Failed to track first message sent event: $error")
|
||||
Timber.d("Failed to track first message sent event: $error")
|
||||
}
|
||||
}
|
||||
|
||||
is AppEvent.SubscriptionPaywallShown,
|
||||
is AppEvent.SubscriptionOnboardingShown -> {
|
||||
eventsRepository.sendEvent(event).onLeft { error ->
|
||||
Timber.e("Failed to track subscription event: $error")
|
||||
Timber.d("Failed to track subscription event: $error")
|
||||
}
|
||||
}
|
||||
|
||||
is AppEvent.OfferReceived,
|
||||
is AppEvent.OfferClicked -> {
|
||||
eventsRepository.sendEvent(event).onLeft { error ->
|
||||
Timber.e("Failed to track offer event: $error")
|
||||
Timber.d("Failed to track offer event: $error")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user