Skip to content

Commit

Permalink
Minor logging change
Browse files Browse the repository at this point in the history
  • Loading branch information
781flyingdutchman committed Feb 23, 2025
1 parent 1ecacca commit e9dfae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9dfae3

Please sign in to comment.