Skip to content

Commit

Permalink
fix: address PR comments-2
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-arshad-dev committed Feb 14, 2024
1 parent 6189314 commit 25fd9f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.openedx.core.utils.Logger

class FirebaseAnalytics(context: Context) : Analytics {

private val logger = Logger(this.javaClass.name)
private val logger = Logger(TAG)
private var tracker: FirebaseAnalytics

init {
Expand All @@ -28,4 +28,8 @@ class FirebaseAnalytics(context: Context) : Analytics {
tracker.setUserId(userId.toString())
logger.d { "Firebase Analytics User Id log Event" }
}

private companion object {
const val TAG = "FirebaseAnalytics"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.segment.analytics.kotlin.core.Analytics as SegmentTracker

class SegmentAnalytics(context: Context, config: Config) : Analytics {

private val logger = Logger(this.javaClass.name)
private val logger = Logger(TAG)
private var tracker: SegmentTracker

init {
Expand Down Expand Up @@ -49,4 +49,8 @@ class SegmentAnalytics(context: Context, config: Config) : Analytics {
logger.d { "Segment Analytics User Id log Event: $userId" }
tracker.identify(userId.toString())
}

private companion object {
const val TAG = "SegmentAnalytics"
}
}

0 comments on commit 25fd9f5

Please sign in to comment.