feat/RES-73_Ajout_DebugMode_Analytics #22

Merged
q.bandera merged 5 commits from feat/RES-73_Ajout_DebugMode_Analytics into master 2025-10-21 15:03:05 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit c4a3aa54d6 - Show all commits

View File

@@ -121,7 +121,7 @@ internal class AnalyticsManager {
var managers: [TrackerType: AnalyticsManagerProtocol] = [:]
private var isDebugMode: Bool = false
private var isDebugMode: Bool = false
private var isEnabled: Bool {
if ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" {

View File

@@ -241,7 +241,7 @@ enum AnalyticsGenerator {
managers.values.forEach { manager in
if isDebugMode {
logger.debug("📊 Event: \\(name, privacy: .public) | action: \\(action, privacy: .public) | category: \\(category, privacy: .public) | params: \\(String(describing: params ?? [:]), privacy: .public)")
logger.debug("📊 Event: \\(name, privacy: .public) | action: \\(action.isEmpty ? "-" : action, privacy: .public) | category: \\(category.isEmpty ? "-" : category, privacy: .public) | params: \\(String(describing: params ?? [:]), privacy: .public)")
}
manager.logEvent(