forked from tangled.org/core
Monorepo for Tangled

appview: state: start posthog notifier only on dev mode

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

authored by boltless.me and committed by Tangled a2586d47 b44b22a6

Changed files
+5 -3
appview
state
+5 -3
appview/state/state.go
··· 134 134 } 135 135 spindlestream.Start(ctx) 136 136 137 - notifier := notify.NewMergedNotifier( 138 - posthog_service.NewPosthogNotifier(posthog), 139 - ) 137 + var notifiers []notify.Notifier 138 + if !config.Core.Dev { 139 + notifiers = append(notifiers, posthog_service.NewPosthogNotifier(posthog)) 140 + } 141 + notifier := notify.NewMergedNotifier(notifiers...) 140 142 141 143 state := &State{ 142 144 d,