This commit is contained in:
1 parent
7c6a8d2ac3
commit
b9e610a6d9
1 file changed
+2
-2
@@ -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" {
|
||||
@@ -202,7 +202,7 @@ internal class AnalyticsManager {
|
||||
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(
|
||||
|
||||
Reference in new issue
Block a user