appview: state: start posthog notifier only on dev mode #337

merged
opened by boltless.me targeting master from boltless.me/core: push-kpypvysmvynx
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,