Remove Sentry
Not used, and it has a quite a few outdated dependencies.
This commit is contained in:
@@ -7,10 +7,6 @@ defmodule MusicLibrary.Application do
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
:logger.add_handler(:my_sentry_handler, Sentry.LoggerHandler, %{
|
||||
config: %{metadata: [:file, :line]}
|
||||
})
|
||||
|
||||
children = [
|
||||
MusicLibraryWeb.Telemetry,
|
||||
MusicLibrary.Repo,
|
||||
|
||||
@@ -55,8 +55,6 @@ defmodule MusicLibraryWeb do
|
||||
use Phoenix.LiveView,
|
||||
layout: {MusicLibraryWeb.Layouts, :app}
|
||||
|
||||
on_mount Sentry.LiveViewHook
|
||||
|
||||
unquote(html_helpers())
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
defmodule MusicLibraryWeb.Endpoint do
|
||||
use Sentry.PlugCapture
|
||||
use Phoenix.Endpoint, otp_app: :music_library
|
||||
|
||||
# The session will be stored in the cookie and signed,
|
||||
@@ -13,8 +12,8 @@ defmodule MusicLibraryWeb.Endpoint do
|
||||
]
|
||||
|
||||
socket "/live", Phoenix.LiveView.Socket,
|
||||
websocket: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]],
|
||||
longpoll: [connect_info: [:peer_data, :uri, :user_agent, session: @session_options]]
|
||||
websocket: [connect_info: [session: @session_options]],
|
||||
longpoll: [connect_info: [session: @session_options]]
|
||||
|
||||
# Serve at "/" the static files from "priv/static" directory.
|
||||
#
|
||||
@@ -47,8 +46,6 @@ defmodule MusicLibraryWeb.Endpoint do
|
||||
pass: ["*/*"],
|
||||
json_decoder: Phoenix.json_library()
|
||||
|
||||
plug Sentry.PlugContext
|
||||
|
||||
plug Plug.MethodOverride
|
||||
plug Plug.Head
|
||||
plug Plug.Session, @session_options
|
||||
|
||||
Reference in New Issue
Block a user