From efc70f6c38f2e044e525e3f80ae8832e2e71ce17 Mon Sep 17 00:00:00 2001 From: Beatrix Klebe Date: Thu, 6 Jun 2024 17:31:40 -0400 Subject: [PATCH] wip: don't ignore missing URL in mediator --- .github/workflows/deploy-dev-blue.yml | 2 ++ apps/state_mediator/lib/state_mediator/mediator.ex | 2 +- config/config.exs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev-blue.yml b/.github/workflows/deploy-dev-blue.yml index 10e04635..7eb51246 100644 --- a/.github/workflows/deploy-dev-blue.yml +++ b/.github/workflows/deploy-dev-blue.yml @@ -4,6 +4,8 @@ on: schedule: - cron: '0 5 * * *' workflow_dispatch: + push: + branches: [beatrix/push/xunyxynunkpr] jobs: deploy: diff --git a/apps/state_mediator/lib/state_mediator/mediator.ex b/apps/state_mediator/lib/state_mediator/mediator.ex index ecc9a94f..cfe89491 100644 --- a/apps/state_mediator/lib/state_mediator/mediator.ex +++ b/apps/state_mediator/lib/state_mediator/mediator.ex @@ -58,7 +58,7 @@ defmodule StateMediator.Mediator do interval = options |> Keyword.get(:interval) if url == "" do - :ignore + {:stop, "no URL specified!"} else send(self(), :initial) diff --git a/config/config.exs b/config/config.exs index f57e5196..bfbac2d2 100644 --- a/config/config.exs +++ b/config/config.exs @@ -17,3 +17,5 @@ end # level: :info, # format: "$date $time [$level] $metadata$message\n", # metadata: [:user_id] + +config :logger, level: :debug