From e9dfae32698a16e1acb96a3cd3cb3544032f3461 Mon Sep 17 00:00:00 2001 From: bram Date: Sat, 22 Feb 2025 21:54:52 -0800 Subject: [PATCH] Minor logging change --- .../kotlin/com/bbflight/background_downloader/TaskWorker.kt | 3 +-- .../Sources/background_downloader/UrlSessionDelegate.swift | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/android/src/main/kotlin/com/bbflight/background_downloader/TaskWorker.kt b/android/src/main/kotlin/com/bbflight/background_downloader/TaskWorker.kt index 14c0770..1c1213d 100644 --- a/android/src/main/kotlin/com/bbflight/background_downloader/TaskWorker.kt +++ b/android/src/main/kotlin/com/bbflight/background_downloader/TaskWorker.kt @@ -120,7 +120,7 @@ open class TaskWorker( // Normal status update - // Check if the task was 'manually' canceled, in which case a TaskStatus.failed may be + // Check if the task was 'programmatically' canceled, in which case a TaskStatus.failed may be // incorrectly generated by the WorkManager, so we change it to 'canceled' val modifiedStatus = if (BDPlugin.canceledTaskIds.contains(task.taskId)) TaskStatus.canceled else status @@ -189,7 +189,6 @@ open class TaskWorker( // Post update if task expects one, or if failed and retry is needed if (canSendStatusUpdate && (task.providesStatusUpdates() || retryNeeded)) { val arg = taskStatusUpdate.argList - Log.wtf(TAG, "Posting status update for ${task.taskId}: ${taskStatusUpdate.taskStatus}") postOnBackgroundChannel("statusUpdate", task, arg, onFail = { // unsuccessful post, so store in local prefs Log.d(TAG, "Could not post status update -> storing locally") diff --git a/ios/background_downloader/Sources/background_downloader/UrlSessionDelegate.swift b/ios/background_downloader/Sources/background_downloader/UrlSessionDelegate.swift index 4175708..b6195b0 100644 --- a/ios/background_downloader/Sources/background_downloader/UrlSessionDelegate.swift +++ b/ios/background_downloader/Sources/background_downloader/UrlSessionDelegate.swift @@ -81,7 +81,6 @@ public class UrlSessionDelegate : NSObject, URLSessionDelegate, URLSessionDownlo task: URLSessionTask, didCompleteWithError error: Error? ) { - os_log("In didCompleteWithError", log: log, type: .error) guard let bgdTask = getTaskFrom(urlSessionTask: task) else { // refers to "our" task, not a URLSessionTask os_log("Could not find task related to urlSessionTask %d", log: log, type: .error, task.taskIdentifier) return