Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Do not initialize the analytics client if no write key set
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Aug 26, 2024
1 parent d53f2ea commit 9813bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kontrol-service/api/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func NewAnalyticsWrapper(isDevMode bool, writeKey string) *AnalyticsWrapper {
logrus.Info("Segment analytics client initialized")
return &AnalyticsWrapper{client: &client}
}
logrus.Info("Dev mode: Segment analytics client not initialized")
logrus.Info("Dev mode or write key not set: Segment analytics client not initialized")
return &AnalyticsWrapper{client: nil}
}

Expand Down

0 comments on commit 9813bd8

Please sign in to comment.