Skip to content

Commit

Permalink
Logging for queue start and cancel added
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofrancis committed May 22, 2019
1 parent d6e5357 commit 79cad63
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ internal class DispatchQueueImpl<T, R>(override var blockLabel: String,
dispatchQueueInfo.isStarted = true
dispatchQueueInfo.dispatchQueueErrorCallback = dispatchQueueErrorCallback
dispatchQueueInfo.rootDispatchQueue?.runDispatcher()
DispatchQueue.globalSettings.logger.print(TAG, "DispatchQueue with id ${dispatchQueueInfo.queueId} has started.")
}
} else {
throwIllegalStateExceptionIfCancelled(dispatchQueueInfo)
Expand Down Expand Up @@ -259,6 +260,7 @@ internal class DispatchQueueImpl<T, R>(override var blockLabel: String,
}
dispatchQueueInfo.rootDispatchQueue = null
dispatchQueueInfo.endDispatchQueue = null
DispatchQueue.globalSettings.logger.print(TAG, "DispatchQueue with id ${dispatchQueueInfo.queueId} has been cancelled.")
}
return this
}
Expand Down

0 comments on commit 79cad63

Please sign in to comment.