Add Sentry
We use Sentry 7.x for now because Sentry 8.0 requires Elixir 1.10 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -4,6 +4,7 @@ defmodule Mobilizon.Web.Endpoint do
|
||||
"""
|
||||
use Phoenix.Endpoint, otp_app: :mobilizon
|
||||
use Absinthe.Phoenix.Endpoint
|
||||
use Sentry.Phoenix.Endpoint
|
||||
|
||||
plug(Mobilizon.Web.Plugs.SetLocalePlug)
|
||||
plug(Mobilizon.Web.Plugs.HTTPSecurityPlug)
|
||||
|
||||
@@ -3,6 +3,8 @@ defmodule Mobilizon.Web.Router do
|
||||
Router for mobilizon app
|
||||
"""
|
||||
use Mobilizon.Web, :router
|
||||
use Plug.ErrorHandler
|
||||
use Sentry.Plug
|
||||
|
||||
pipeline :graphql do
|
||||
# plug(:accepts, ["json"])
|
||||
|
||||
Reference in New Issue
Block a user