From 9813bd8f03a4b4b3e7e3588997bea3e8815c8181 Mon Sep 17 00:00:00 2001 From: Laurent Luce Date: Sun, 25 Aug 2024 20:10:37 -0400 Subject: [PATCH] Do not initialize the analytics client if no write key set --- kontrol-service/api/analytics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kontrol-service/api/analytics.go b/kontrol-service/api/analytics.go index b600eb2..efbed17 100644 --- a/kontrol-service/api/analytics.go +++ b/kontrol-service/api/analytics.go @@ -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} }