From f77e7c4327744ad5c0e70be089e5e5e9e5e28c75 Mon Sep 17 00:00:00 2001 From: Vivek kumar Date: Tue, 14 Apr 2026 19:18:08 +0530 Subject: [PATCH] Wrap Log() body with #if DEBUG to avoid string construction in release builds --- Sources/JoyfillUI/Extensions/JoyfillLogger.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/JoyfillUI/Extensions/JoyfillLogger.swift b/Sources/JoyfillUI/Extensions/JoyfillLogger.swift index 7ef9c0f34..573a31ce5 100644 --- a/Sources/JoyfillUI/Extensions/JoyfillLogger.swift +++ b/Sources/JoyfillUI/Extensions/JoyfillLogger.swift @@ -67,6 +67,7 @@ public func Log( file: String = #file, line: Int = #line ) { + #if DEBUG JoyfillLogger.shared.log( message, type: type, @@ -74,4 +75,5 @@ public func Log( file: file, line: line ) + #endif }