[android][database] misc todo

This commit is contained in:
Salakar 2017-11-08 16:09:39 +00:00
parent 621df87145
commit 33e06f9b6e
1 changed files with 6 additions and 5 deletions

View File

@ -488,11 +488,12 @@ public class RNFirebaseDatabase extends ReactContextBaseJavaModule {
FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance(firebaseApp);
if (enableLogging) {
firebaseDatabase.setLogLevel(Logger.Level.DEBUG);
} else {
firebaseDatabase.setLogLevel(Logger.Level.WARN);
}
// todo errors 'calls must be made before any other usage of database instance
// if (enableLogging) {
// firebaseDatabase.setLogLevel(Logger.Level.DEBUG);
// } else {
// firebaseDatabase.setLogLevel(Logger.Level.WARN);
// }
return firebaseDatabase;
}