From bcb39bc84b7e4df2da4b9878ac0a69ec370d9965 Mon Sep 17 00:00:00 2001 From: ActuallyTaylor Date: Thu, 14 Dec 2023 17:35:52 -0500 Subject: [PATCH] Debug only logs when app is in debug mode Signed-off-by: ActuallyTaylor --- Sources/HydrogenReporter/Logger.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/HydrogenReporter/Logger.swift b/Sources/HydrogenReporter/Logger.swift index 1337e9e..4b83bd9 100644 --- a/Sources/HydrogenReporter/Logger.swift +++ b/Sources/HydrogenReporter/Logger.swift @@ -189,9 +189,11 @@ public class Logger: ObservableObject { appendLog(log: item, description: desc) os_log(.info, "%{public}s", desc) case .debug: + #if DEBUG let desc = item.description appendLog(log: item, description: desc) os_log(.debug, "%{public}s", desc) + #endif } }