Skip to content

Commit f0884c5

Browse files
authored
Log the exception when firebaseId fails (#405)
1 parent 4bac22b commit f0884c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AndroidSDKFcm/src/main/java/com/leanplum/LeanplumFcmProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public void getCurrentRegistrationIdAndUpdateBackend() {
5656
@Override
5757
public void onComplete(@NonNull Task<InstanceIdResult> task) {
5858
if (!task.isSuccessful()) {
59-
Log.e("getInstanceId failed");
59+
Exception exc = task.getException();
60+
Log.e("getInstanceId failed:\n" + Log.getStackTraceString(exc));
6061
return;
6162
}
6263
// Get new Instance ID token

0 commit comments

Comments
 (0)