Skip to content

Commit

Permalink
Fix error when running tests
Browse files Browse the repository at this point in the history
Was seeing
`calling logger:remove_handler(default) failed: :error {:badmatch, {:error, {:not_found, :default}}}`
when running tests. According to a GitHub issue[1], the fix is to start
`lager` before `logger`.

[1]: erlang-lager/lager#507 (comment)
  • Loading branch information
bnadlerjr committed Jan 17, 2021
1 parent 137086e commit f4e2439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Lightrail.MixProject do

def application do
[
extra_applications: [:logger]
extra_applications: [:lager, :logger]
]
end

Expand Down

0 comments on commit f4e2439

Please sign in to comment.