diff --git a/FirebaseMLModelDownloader/Sources/TelemetryLogger.swift b/FirebaseMLModelDownloader/Sources/TelemetryLogger.swift index 179d895817a..3580408f75f 100644 --- a/FirebaseMLModelDownloader/Sources/TelemetryLogger.swift +++ b/FirebaseMLModelDownloader/Sources/TelemetryLogger.swift @@ -124,29 +124,29 @@ class TelemetryLogger { private let app: FirebaseApp /// Transport for Firelog events. - private let fllTransport: GDTCORTransport + private let cctTransport: GDTCORTransport /// Init logger, could be nil if unable to get event transport. init?(app: FirebaseApp) { self.app = app - guard let fllTransport = GDTCORTransport( + guard let cctTransport = GDTCORTransport( mappingID: mappingID, transformers: nil, - target: GDTCORTarget.FLL + target: GDTCORTarget.CCT ) else { DeviceLogger.logEvent(level: .debug, message: TelemetryLogger.ErrorDescription.initTelemetryLogger, messageCode: .telemetryInitError) return nil } - self.fllTransport = fllTransport + self.cctTransport = cctTransport } /// Log events to Firelog. private func logModelEvent(event: FirebaseMlLogEvent) { - let eventForTransport: GDTCOREvent = fllTransport.eventForTransport() + let eventForTransport: GDTCOREvent = cctTransport.eventForTransport() eventForTransport.dataObject = FBMLDataObject(event: event) - fllTransport.sendTelemetryEvent(eventForTransport) + cctTransport.sendTelemetryEvent(eventForTransport) } /// Log model deleted event to Firelog.