aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-15 17:14:07 +0300
committerGravatar Vitaly Takmazov2018-10-15 17:14:07 +0300
commit3daee57cb833c5fc9cf172c70895cac06e0f57fd (patch)
tree2618b01ad5e7ae7e4662935e78c1b9ef3ffdefc2 /juick-notifications/src/main
parent91e7185fe97c888f339f5775174047899e051e52 (diff)
notifications: log FCM error codes
Diffstat (limited to 'juick-notifications/src/main')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/FirebaseManager.java1
1 files changed, 1 insertions, 0 deletions
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")) {