[Android][Database] Fix #97 Stop logging com.google.firebase.database.DatabaseException

This commit is contained in:
Aleck Greenham 2017-05-09 06:59:16 +01:00
parent 61495c5bd3
commit 6220d9d7dd
1 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ import com.google.firebase.database.OnDisconnect;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.DatabaseException;
import com.google.firebase.database.Transaction;
import io.invertase.firebase.Utils;
@ -55,8 +56,8 @@ public class RNFirebaseDatabase extends ReactContextBaseJavaModule {
final Callback callback) {
try {
mFirebaseDatabase.setPersistenceEnabled(enable);
} catch (Throwable t) {
Log.e(TAG, "FirebaseDatabase setPersistenceEnabled exception", t);
} catch (DatabaseException t) {
}
WritableMap res = Arguments.createMap();