mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
- Attaches the Sentry Logging hook in each of [api, web, domain] - Removes errant Sentry logging configuration in config/config.exs - Fixes the exception logger to default to logging exceptions, use `skip_sentry: true` to skip Tested successfully in dev. Hopefully the cluster behaves the same way. Fixes #8639
22 lines
558 B
Elixir
22 lines
558 B
Elixir
defmodule Web.LiveErrors do
|
|
defmodule NotFoundError do
|
|
defexception message: "Not Found", skip_sentry: false
|
|
|
|
defimpl Plug.Exception do
|
|
def status(_exception), do: 404
|
|
def actions(_exception), do: []
|
|
end
|
|
end
|
|
|
|
# this is not a styled error because only security scanners that
|
|
# try to manipulate the request will see it
|
|
defmodule InvalidParamsError do
|
|
defexception message: "Unprocessable Entity"
|
|
|
|
defimpl Plug.Exception do
|
|
def status(_exception), do: 422
|
|
def actions(_exception), do: []
|
|
end
|
|
end
|
|
end
|