Skip to content

Commit

Permalink
Revert changelog and rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Oct 30, 2023
1 parent 0fc55a2 commit 47a66e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions FirebaseMLModelDownloader/CHANGELOG.md

This file was deleted.

10 changes: 5 additions & 5 deletions FirebaseMLModelDownloader/Sources/TelemetryLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ class TelemetryLogger {
private let app: FirebaseApp

/// Transport for Firelog events.
private let clearcutTransport: GDTCORTransport
private let cctTransport: GDTCORTransport

/// Init logger, could be nil if unable to get event transport.
init?(app: FirebaseApp) {
self.app = app
guard let clearcutTransport = GDTCORTransport(
guard let cctTransport = GDTCORTransport(
mappingID: mappingID,
transformers: nil,
target: GDTCORTarget.CCT
Expand All @@ -139,14 +139,14 @@ class TelemetryLogger {
messageCode: .telemetryInitError)
return nil
}
self.clearcutTransport = clearcutTransport
self.cctTransport = cctTransport
}

/// Log events to Firelog.
private func logModelEvent(event: FirebaseMlLogEvent) {
let eventForTransport: GDTCOREvent = clearcutTransport.eventForTransport()
let eventForTransport: GDTCOREvent = cctTransport.eventForTransport()
eventForTransport.dataObject = FBMLDataObject(event: event)
clearcutTransport.sendTelemetryEvent(eventForTransport)
cctTransport.sendTelemetryEvent(eventForTransport)
}

/// Log model deleted event to Firelog.
Expand Down

0 comments on commit 47a66e9

Please sign in to comment.