From c5d4ca6e9be4829156a9dcffae3990289a76af4b Mon Sep 17 00:00:00 2001 From: Michele Bombardi Date: Wed, 27 Sep 2017 13:16:07 +0200 Subject: [PATCH] e.printStackTrace -> Log.e(...) --- .../io/invertase/firebase/messaging/RNFirebaseMessaging.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java b/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java index 7f246e5f..87fa616e 100644 --- a/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java +++ b/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java @@ -80,8 +80,8 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements L FirebaseInstanceId.getInstance().deleteInstanceId(); promise.resolve(null); } catch (IOException e) { - e.printStackTrace(); - promise.reject(null,e.getMessage()); + Log.e(TAG, e.getMessage()); + promise.reject(null, e.getMessage()); } }