From 79cad630627646d5462b479d7556180afd958d2d Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Wed, 22 May 2019 10:03:26 -0400 Subject: [PATCH] Logging for queue start and cancel added --- .../java/com/tonyodev/dispatch/internals/DispatchQueueImpl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dispatch/src/main/java/com/tonyodev/dispatch/internals/DispatchQueueImpl.kt b/dispatch/src/main/java/com/tonyodev/dispatch/internals/DispatchQueueImpl.kt index c7ffbc9..5592702 100644 --- a/dispatch/src/main/java/com/tonyodev/dispatch/internals/DispatchQueueImpl.kt +++ b/dispatch/src/main/java/com/tonyodev/dispatch/internals/DispatchQueueImpl.kt @@ -217,6 +217,7 @@ internal class DispatchQueueImpl(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) @@ -259,6 +260,7 @@ internal class DispatchQueueImpl(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 }