Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit d729424

Browse files
author
Elad Gil
committed
removed some logs we don't need
1 parent 1b18a01 commit d729424

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

android/src/main/java/com/eko/RNBackgroundDownloadModule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ public void onError(Download download) {
242242
Error error = download.getError();
243243
Throwable throwable = error.getThrowable();
244244

245-
Log.e(getName(), error.toString());
246245
WritableMap params = Arguments.createMap();
247246
params.putString("id", requestIdToConfig.get(download.getId()).id);
248247
if (error == Error.UNKNOWN && throwable != null) {

ios/RNBackgroundDownload.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
110110
NSString *url = options[@"url"];
111111
NSString *destination = options[@"destination"];
112112
if (identifier == nil || url == nil || destination == nil) {
113-
NSLog(@"[RNFileBackgroundDownload] [Error] id, url and destination must be set");
113+
NSLog(@"[RNFileBackgroundDownload] - [Error] id, url and destination must be set");
114114
return;
115115
}
116116

@@ -152,7 +152,6 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
152152
NSMutableArray *idsFound = [[NSMutableArray alloc] init];
153153
for (NSURLSessionDownloadTask *foundTask in downloadTasks) {
154154
NSURLSessionDownloadTask __strong *task = foundTask;
155-
NSLog(@"Found task with url: %@", task.currentRequest.URL.absoluteString);
156155
RNBGDTaskConfig *taskConfig = urlToConfigMap[task.currentRequest.URL.absoluteString];
157156
if (taskConfig) {
158157
if (task.state == NSURLSessionTaskStateCompleted && task.countOfBytesReceived < task.countOfBytesExpectedToReceive) {
@@ -246,7 +245,6 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
246245
}
247246

248247
- (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session {
249-
NSLog(@"in URLSessionDidFinishEventsForBackgroundURLSession");
250248
if (storedCompletionHandler) {
251249
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
252250
storedCompletionHandler();

0 commit comments

Comments
 (0)