From 7caa1d642262c05b02806afecee5f235a73d0727 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 28 Aug 2018 09:58:03 -0500 Subject: [PATCH] Set error log path Forgot to set the path to the error log in #608. Errors were only being shown in console and not written to `logs//error.log`. --- config/dev.exs | 2 ++ config/prod.exs | 2 ++ config/test.exs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/config/dev.exs b/config/dev.exs index 5d5249dc46..0adbc43d60 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -6,3 +6,5 @@ config :logger, :console, level: :info config :logger, :ecto, level: :debug, path: "logs/dev/ecto.log" + +config :logger, :error, path: "logs/dev/error.log" diff --git a/config/prod.exs b/config/prod.exs index afb69eb4e0..dd889fd400 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -7,3 +7,5 @@ config :logger, :console, level: :info config :logger, :ecto, level: :info, path: "logs/prod/ecto.log" + +config :logger, :error, path: "logs/prod/error.log" diff --git a/config/test.exs b/config/test.exs index a5510715c5..ad540e2b99 100644 --- a/config/test.exs +++ b/config/test.exs @@ -8,6 +8,8 @@ config :logger, :ecto, level: :warn, path: "logs/test/ecto.log" +config :logger, :error, path: "logs/test/error.log" + config :explorer, Explorer.ExchangeRates, source: Explorer.ExchangeRates.Source.NoOpSource, store: :none