Upgrade to use latest Sentry

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-02-04 18:57:26 +01:00
parent aeb6b2679c
commit ad74234ab4
5 changed files with 9 additions and 5 deletions

View File

@@ -2,9 +2,9 @@ defmodule Mobilizon.Web.Endpoint do
@moduledoc """
Endpoint for Mobilizon app
"""
use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :mobilizon
use Absinthe.Phoenix.Endpoint
use Sentry.Phoenix.Endpoint
plug(Mobilizon.Web.Plugs.SetLocalePlug)
plug(Mobilizon.Web.Plugs.HTTPSecurityPlug)
@@ -82,4 +82,6 @@ defmodule Mobilizon.Web.Endpoint do
def websocket_url do
String.replace_leading(url(), "http", "ws")
end
plug(Sentry.PlugContext)
end