Disable Sentry in test mode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
69607d2c8f
commit
4d7203a1d2
@ -2,7 +2,10 @@ defmodule Mobilizon.Web.Endpoint do
|
|||||||
@moduledoc """
|
@moduledoc """
|
||||||
Endpoint for Mobilizon app
|
Endpoint for Mobilizon app
|
||||||
"""
|
"""
|
||||||
use Sentry.PlugCapture
|
if Application.fetch_env!(:mobilizon, :env) !== :test do
|
||||||
|
use Sentry.PlugCapture
|
||||||
|
end
|
||||||
|
|
||||||
use Phoenix.Endpoint, otp_app: :mobilizon
|
use Phoenix.Endpoint, otp_app: :mobilizon
|
||||||
use Absinthe.Phoenix.Endpoint
|
use Absinthe.Phoenix.Endpoint
|
||||||
|
|
||||||
@ -83,5 +86,7 @@ defmodule Mobilizon.Web.Endpoint do
|
|||||||
String.replace_leading(url(), "http", "ws")
|
String.replace_leading(url(), "http", "ws")
|
||||||
end
|
end
|
||||||
|
|
||||||
plug(Sentry.PlugContext)
|
if Application.fetch_env!(:mobilizon, :env) !== :test do
|
||||||
|
plug(Sentry.PlugContext)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user