From 16b2e55f5f93c99ba71dab189a2e81ab8c546627 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 19 Jun 2024 20:20:21 -0700 Subject: [PATCH] Rename debugging property to loggingEnabled, since it really just controls whether or not logging is enabled. --- Core/Sources/Core/CoalescingQueue.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Sources/Core/CoalescingQueue.swift b/Core/Sources/Core/CoalescingQueue.swift index e9ebbe552..9d7d4a8c8 100644 --- a/Core/Sources/Core/CoalescingQueue.swift +++ b/Core/Sources/Core/CoalescingQueue.swift @@ -39,8 +39,8 @@ struct QueueCall: Equatable { private var lastCallTime = Date.distantFuture private var timer: Timer? = nil private var calls = [QueueCall]() - private var debugging = false + private var loggingEnabled = false private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "CoalescingQueue") private var logger: Logger { Self.logger @@ -58,7 +58,7 @@ struct QueueCall: Equatable { public func performCallsImmediately() { - if debugging { + if loggingEnabled { logger.debug("CoalescingQueue performing calls: \(self.name)") } @@ -79,7 +79,7 @@ private extension CoalescingQueue { func add(_ call: QueueCall) { - if debugging { + if loggingEnabled { logger.debug("CoalescingQueue adding to queue: \(self.name)") }