File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ defmodule Sentry.LoggerBackend do
66 To include the backend in your application, the backend can be added in your
77 application file:
88
9- def start(_type, _opts) do
10- children = [
11- supervisor(MyApp.Repo, []),
12- supervisor(MyAppWeb.Endpoint, [])
13- ]
9+ def start(_type, _opts) do
10+ children = [
11+ supervisor(MyApp.Repo, []),
12+ supervisor(MyAppWeb.Endpoint, [])
13+ ]
1414
15- opts = [strategy: :one_for_one, name: MyApp.Supervisor]
15+ opts = [strategy: :one_for_one, name: MyApp.Supervisor]
1616
17- {:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
17+ {:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
1818
19- Supervisor.start_link(children, opts)
20- end
19+ Supervisor.start_link(children, opts)
20+ end
2121
2222 If you are on OTP 21+ and would like to configure the backend to include metadata from
2323 `Logger.metadata/0` in reported events, it can be enabled:
You can’t perform that action at this time.
0 commit comments