From 333fcbb1de3013fb0c84fc9260a3aadf79fe2ff1 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Fri, 25 Jul 2025 20:42:47 +0900 Subject: [PATCH] appview: state: start posthog notifier only on dev mode Change-Id: kpypvysmvynxsvqwmzwuxoqzkqsptzoz Signed-off-by: Seongmin Lee --- appview/state/state.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/appview/state/state.go b/appview/state/state.go index d70c517..55abba0 100644 --- a/appview/state/state.go +++ b/appview/state/state.go @@ -134,9 +134,11 @@ func Make(ctx context.Context, config *config.Config) (*State, error) { } spindlestream.Start(ctx) - notifier := notify.NewMergedNotifier( - posthog_service.NewPosthogNotifier(posthog), - ) + var notifiers []notify.Notifier + if !config.Core.Dev { + notifiers = append(notifiers, posthog_service.NewPosthogNotifier(posthog)) + } + notifier := notify.NewMergedNotifier(notifiers...) state := &State{ d, -- 2.43.0