Skip to content

Commit d2f64ab

Browse files
committed
fix docs
1 parent 6222ede commit d2f64ab

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/sentry/logger_backend.ex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)