From 3daee57cb833c5fc9cf172c70895cac06e0f57fd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 15 Oct 2018 17:14:07 +0300 Subject: notifications: log FCM error codes --- .../src/main/java/com/juick/components/FirebaseManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-notifications/src/main') diff --git a/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java b/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java index f88f3201..f3f97131 100644 --- a/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java +++ b/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java @@ -76,6 +76,7 @@ public class FirebaseManager implements NotificationListener { public void onFailure(Throwable t) { if (t instanceof FirebaseMessagingException) { FirebaseMessagingException e = (FirebaseMessagingException) t; + logger.warn("FirebaseMessaging error: {}", e.getErrorCode()); if (e.getErrorCode().equals("messaging/invalid-argument") || e.getErrorCode().equals("messaging/registration-token-not-registered") || e.getErrorCode().equals("messaging/invalid-registration-token")) { -- cgit v1.2.3