Merge pull request #836 from skovhus/remove-invasive-remote-config-log
Remove error log from RNFirebaseRemoteConfig
This commit is contained in:
commit
25ad0f339d
|
@ -49,7 +49,6 @@ RCT_EXPORT_METHOD(fetch:
|
||||||
(RCTPromiseRejectBlock) reject) {
|
(RCTPromiseRejectBlock) reject) {
|
||||||
[[FIRRemoteConfig remoteConfig] fetchWithCompletionHandler:^(FIRRemoteConfigFetchStatus status, NSError *__nullable error) {
|
[[FIRRemoteConfig remoteConfig] fetchWithCompletionHandler:^(FIRRemoteConfigFetchStatus status, NSError *__nullable error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
RCTLogError(@"\nError: %@", RCTJSErrorFromNSError(error));
|
|
||||||
reject(convertFIRRemoteConfigFetchStatusToNSString(status), error.localizedDescription, error);
|
reject(convertFIRRemoteConfigFetchStatusToNSString(status), error.localizedDescription, error);
|
||||||
} else {
|
} else {
|
||||||
resolve(convertFIRRemoteConfigFetchStatusToNSString(status));
|
resolve(convertFIRRemoteConfigFetchStatusToNSString(status));
|
||||||
|
@ -64,7 +63,6 @@ RCT_EXPORT_METHOD(fetchWithExpirationDuration:
|
||||||
rejecter:(RCTPromiseRejectBlock)reject) {
|
rejecter:(RCTPromiseRejectBlock)reject) {
|
||||||
[[FIRRemoteConfig remoteConfig] fetchWithExpirationDuration:expirationDuration.doubleValue completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *__nullable error) {
|
[[FIRRemoteConfig remoteConfig] fetchWithExpirationDuration:expirationDuration.doubleValue completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *__nullable error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
RCTLogError(@"\nError: %@", RCTJSErrorFromNSError(error));
|
|
||||||
reject(convertFIRRemoteConfigFetchStatusToNSString(status), error.localizedDescription, error);
|
reject(convertFIRRemoteConfigFetchStatusToNSString(status), error.localizedDescription, error);
|
||||||
} else {
|
} else {
|
||||||
resolve(convertFIRRemoteConfigFetchStatusToNSString(status));
|
resolve(convertFIRRemoteConfigFetchStatusToNSString(status));
|
||||||
|
|
Loading…
Reference in New Issue