You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
per [the bugsnag-elixir docs](https://github.com/jarednorman/bugsnag-elixir).
22
21
23
-
If you're using Elixir < 1.4 make sure that `plugsnag` and `bugsnag` apps are started in your mix.exs. If you are using Elixir 1.4, the applications will be automatically started because they are dependencies.
24
-
25
-
For example:
22
+
To use the plug, `use` it in your router. For example in an Phoenix app:
26
23
27
24
```elixir
28
-
defapplicationdo
29
-
[mod: {MyApp, []},
30
-
applications: [:logger, :plugsnag, :bugsnag]
31
-
]
32
-
end
25
+
defmoduleYourApp.Routerdo
26
+
usePhoenix.Router
27
+
usePlugsnag
28
+
29
+
# ...
30
+
end
33
31
```
34
32
35
-
To use the plug, `use` it in your router. For example in an Phoenix app:
33
+
If you want to define your own `handle_errors` functions using [Plug.ErrorHandler](https://hexdocs.pm/plug/Plug.ErrorHandler.html), then you can call `Plugsnag.handle_errors/{2,3}` directly.
0 commit comments