Skip to content

Commit

Permalink
Debug only logs when app is in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: ActuallyTaylor <[email protected]>
  • Loading branch information
ActuallyTaylor committed Dec 14, 2023
1 parent 2153f29 commit bcb39bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/HydrogenReporter/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit bcb39bc

Please sign in to comment.