Prevent test crash if it cannot successfully remove the console Logger backend
This commit is contained in:
parent
28b69f5c04
commit
6da5ca9b2d
1 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ defmodule Mix.Pleroma do
|
|||
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
|
||||
|
||||
unless System.get_env("DEBUG") do
|
||||
try do
|
||||
Logger.remove_backend(:console)
|
||||
catch
|
||||
:exit, _ -> :ok
|
||||
end
|
||||
end
|
||||
|
||||
adapter = Application.get_env(:tesla, :adapter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue