From 6128b5988e29be948768016d41ca9b968ba368ce Mon Sep 17 00:00:00 2001 From: Max Veytsman Date: Mon, 1 Nov 2021 15:57:34 -0400 Subject: [PATCH] Disable scheduled messaging in dev --- config/prod.exs | 2 ++ lib/bike_brigade/application.ex | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 42186d58..bb061f07 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -15,6 +15,8 @@ config :bike_brigade, :geocoder, adapter: BikeBrigade.Geocoder.LibLatLonGeocoder config :bike_brigade, BikeBrigade.Google, start: true +config :bike_brigade BikeBrigade.ScheduledMessenger, start: true + # Importers config :bike_brigade, BikeBrigade.Importers.Runner, start: true, diff --git a/lib/bike_brigade/application.ex b/lib/bike_brigade/application.ex index d530c7a7..daad653c 100644 --- a/lib/bike_brigade/application.ex +++ b/lib/bike_brigade/application.ex @@ -23,9 +23,9 @@ defmodule BikeBrigade.Application do BikeBrigade.AuthenticationMessenger, # Send scheduled campaign messgaes - BikeBrigade.ScheduledMessenger ] |> add_child_if_configured(BikeBrigade.Importers.Runner) + |> add_child_if_configured(BikeBrigade.ScheduledMessenger) |> add_child_if_configured( BikeBrigade.Google, {Goth, name: BikeBrigade.Google, source: BikeBrigade.Google.source()} @@ -33,7 +33,7 @@ defmodule BikeBrigade.Application do |> BikeBrigade.SlackApi.append_child_spec() |> BikeBrigade.SmsService.append_child_spec() |> BikeBrigade.Geocoder.append_child_spec() - + # Hook up telemetry to Honeybadger BikeBrigade.HoneybadgerTelemetry.attach()