From d72942408527de50868632e1e5a426a266e69b9e Mon Sep 17 00:00:00 2001 From: Elad Gil Date: Tue, 3 Jul 2018 14:53:42 +0300 Subject: [PATCH] removed some logs we don't need --- android/src/main/java/com/eko/RNBackgroundDownloadModule.java | 1 - ios/RNBackgroundDownload.m | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/android/src/main/java/com/eko/RNBackgroundDownloadModule.java b/android/src/main/java/com/eko/RNBackgroundDownloadModule.java index 483a7de..338727d 100644 --- a/android/src/main/java/com/eko/RNBackgroundDownloadModule.java +++ b/android/src/main/java/com/eko/RNBackgroundDownloadModule.java @@ -242,7 +242,6 @@ public class RNBackgroundDownloadModule extends ReactContextBaseJavaModule imple Error error = download.getError(); Throwable throwable = error.getThrowable(); - Log.e(getName(), error.toString()); WritableMap params = Arguments.createMap(); params.putString("id", requestIdToConfig.get(download.getId()).id); if (error == Error.UNKNOWN && throwable != null) { diff --git a/ios/RNBackgroundDownload.m b/ios/RNBackgroundDownload.m index c76cd65..7bcfbd7 100644 --- a/ios/RNBackgroundDownload.m +++ b/ios/RNBackgroundDownload.m @@ -110,7 +110,7 @@ RCT_EXPORT_METHOD(download: (NSDictionary *) options) { NSString *url = options[@"url"]; NSString *destination = options[@"destination"]; if (identifier == nil || url == nil || destination == nil) { - NSLog(@"[RNFileBackgroundDownload] [Error] id, url and destination must be set"); + NSLog(@"[RNFileBackgroundDownload] - [Error] id, url and destination must be set"); return; } @@ -152,7 +152,6 @@ RCT_EXPORT_METHOD(checkForExistingDownloads: (RCTPromiseResolveBlock)resolve rej NSMutableArray *idsFound = [[NSMutableArray alloc] init]; for (NSURLSessionDownloadTask *foundTask in downloadTasks) { NSURLSessionDownloadTask __strong *task = foundTask; - NSLog(@"Found task with url: %@", task.currentRequest.URL.absoluteString); RNBGDTaskConfig *taskConfig = urlToConfigMap[task.currentRequest.URL.absoluteString]; if (taskConfig) { if (task.state == NSURLSessionTaskStateCompleted && task.countOfBytesReceived < task.countOfBytesExpectedToReceive) { @@ -246,7 +245,6 @@ RCT_EXPORT_METHOD(checkForExistingDownloads: (RCTPromiseResolveBlock)resolve rej } - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session { - NSLog(@"in URLSessionDidFinishEventsForBackgroundURLSession"); if (storedCompletionHandler) { [[NSOperationQueue mainQueue] addOperationWithBlock:^{ storedCompletionHandler();