From 2921ff7441972d6d910b1688c94119704a4510ce Mon Sep 17 00:00:00 2001 From: ManApart Date: Fri, 29 Mar 2019 14:02:40 -0400 Subject: [PATCH] Divo is too chatty --- lib/divo.ex | 4 ++++ lib/divo/compose.ex | 4 +++- mix.exs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/divo.ex b/lib/divo.ex index 1887023..e94db1f 100644 --- a/lib/divo.ex +++ b/lib/divo.ex @@ -35,8 +35,12 @@ defmodule Divo do dependent_apps = Application.spec(app, :applications) -- [:kernel, :stdlib, :elixir, :ex_unit, :logger, :divo, :placebo] + Logger.remove_backend(:console) + [app | dependent_apps] |> Enum.each(&Application.stop/1) + + Logger.add_backend(:console) end Divo.Compose.kill() diff --git a/lib/divo/compose.ex b/lib/divo/compose.ex index ee2b502..0db2dc9 100644 --- a/lib/divo/compose.ex +++ b/lib/divo/compose.ex @@ -73,6 +73,8 @@ defmodule Divo.Compose do end defp await() do + Logger.info("Please wait for containers to register as 'healthy'") + fetch_containers() |> Enum.filter(&health_defined?/1) |> Enum.map(&await_healthy/1) @@ -95,7 +97,7 @@ defmodule Divo.Compose do defp check_health(container) do fn -> - Logger.info("Checking #{container} is healthy...") + Logger.debug("Checking #{container} is healthy...") container |> health_status() diff --git a/mix.exs b/mix.exs index 98f3228..d5cddbd 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Divo.MixProject do def project do [ app: :divo, - version: "1.1.0", + version: "1.1.1", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(),