From 1c7828f9557eef518030df79254a5df642a406d7 Mon Sep 17 00:00:00 2001 From: href Date: Mon, 6 Sep 2021 15:05:07 +0200 Subject: Sentry --- lib/lsg_web/endpoint.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/lsg_web/endpoint.ex') diff --git a/lib/lsg_web/endpoint.ex b/lib/lsg_web/endpoint.ex index 4dd8151..bfd53c8 100644 --- a/lib/lsg_web/endpoint.ex +++ b/lib/lsg_web/endpoint.ex @@ -1,4 +1,5 @@ defmodule LSGWeb.Endpoint do + use Sentry.PlugCapture use Phoenix.Endpoint, otp_app: :lsg # Serve at "/" the static files from "priv/static" directory. @@ -23,8 +24,9 @@ defmodule LSGWeb.Endpoint do plug Plug.Parsers, parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], - json_decoder: Poison + json_decoder: Jason + plug Sentry.PlugContext plug Plug.MethodOverride plug Plug.Head -- cgit v1.2.3