From 38a34272cbbc5eb4a779732c25cf5cbc25153526 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Fri, 27 Sep 2024 10:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Update:=20Disable=20Logging=20in?= =?UTF-8?q?=20`ViewControllerLifecycleNotifier`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Temp/ViewControllerLifecycleNotifier.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ios/Temp/ViewControllerLifecycleNotifier.swift b/ios/Temp/ViewControllerLifecycleNotifier.swift index 1f05e2ea..eaa06efe 100644 --- a/ios/Temp/ViewControllerLifecycleNotifier.swift +++ b/ios/Temp/ViewControllerLifecycleNotifier.swift @@ -187,11 +187,15 @@ open class ViewControllerLifecycleNotifier: UIViewController { // --------------------- #if DEBUG - public static var _debugShouldLog = true; + public static var _debugShouldLog = false; private var _debugDidAutoLogViewControllerMetrics = false; func debugLogViewControllerMetrics(invoker: String = #function){ + guard Self._debugShouldLog else { + return; + }; + var debugMessage = "ViewControllerLifecycleNotifier.logViewControllerMetrics" + "\n - invoker: \(invoker)"