[Android][Database] Fix #97 Stop logging com.google.firebase.database.DatabaseException
This commit is contained in:
parent
61495c5bd3
commit
6220d9d7dd
|
@ -28,6 +28,7 @@ import com.google.firebase.database.OnDisconnect;
|
||||||
import com.google.firebase.database.DatabaseError;
|
import com.google.firebase.database.DatabaseError;
|
||||||
import com.google.firebase.database.DatabaseReference;
|
import com.google.firebase.database.DatabaseReference;
|
||||||
import com.google.firebase.database.FirebaseDatabase;
|
import com.google.firebase.database.FirebaseDatabase;
|
||||||
|
import com.google.firebase.database.DatabaseException;
|
||||||
import com.google.firebase.database.Transaction;
|
import com.google.firebase.database.Transaction;
|
||||||
|
|
||||||
import io.invertase.firebase.Utils;
|
import io.invertase.firebase.Utils;
|
||||||
|
@ -55,8 +56,8 @@ public class RNFirebaseDatabase extends ReactContextBaseJavaModule {
|
||||||
final Callback callback) {
|
final Callback callback) {
|
||||||
try {
|
try {
|
||||||
mFirebaseDatabase.setPersistenceEnabled(enable);
|
mFirebaseDatabase.setPersistenceEnabled(enable);
|
||||||
} catch (Throwable t) {
|
} catch (DatabaseException t) {
|
||||||
Log.e(TAG, "FirebaseDatabase setPersistenceEnabled exception", t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WritableMap res = Arguments.createMap();
|
WritableMap res = Arguments.createMap();
|
||||||
|
|
Loading…
Reference in New Issue