This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
defmodule GroupherServerWeb.Endpoint do
2
+ use Sentry.PlugCapture
2
3
use Phoenix.Endpoint , otp_app: :groupher_server
3
4
4
5
socket ( "/socket" , GroupherServerWeb.UserSocket )
@@ -13,6 +14,7 @@ defmodule GroupherServerWeb.Endpoint do
13
14
json_decoder: Jason
14
15
)
15
16
17
+ plug ( Sentry.PlugContext )
16
18
plug ( Plug.MethodOverride )
17
19
plug ( Plug.Head )
18
20
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ defmodule GroupherServerWeb.Router do
2
2
@ moduledoc false
3
3
4
4
use GroupherServerWeb , :router
5
- use Plug.ErrorHandler
6
- use Sentry.Plug
7
5
8
6
pipeline :api do
9
7
plug ( :accepts , [ "json" ] )
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ defmodule GroupherServer.Mixfile do
135
135
"doc.report": [ "inch.report" ] ,
136
136
lint: [ "credo --strict" ] ,
137
137
"lint.static": [ "dialyzer --format dialyxir" ] ,
138
- "cps.seeds": [ "run priv/mock/cps_seeds.exs" ]
138
+ "cps.seeds": [ "run priv/mock/cps_seeds.exs" ] ,
139
+ sentry_recompile: [ "compile" , "deps.compile sentry --force" ]
139
140
]
140
141
end
141
142
end
You can’t perform that action at this time.
0 commit comments