Skip to content

Commit a567542

Browse files
Merge pull request #377 from getsentry/fix-phoenix-duplicate
handle new cowboy2 init MFA
2 parents eec688c + e244f7f commit a567542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sentry/logger_backend.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ defmodule Sentry.LoggerBackend do
9090
if ignore_plug &&
9191
Enum.any?(stacktrace, fn {module, function, arity, _file_line} ->
9292
match?({^module, ^function, ^arity}, {Plug.Cowboy.Handler, :init, 2}) ||
93-
match?({^module, ^function, ^arity}, {Phoenix.Endpoint.Cowboy2Handler, :init, 2})
93+
match?({^module, ^function, ^arity}, {Phoenix.Endpoint.Cowboy2Handler, :init, 2}) ||
94+
match?({^module, ^function, ^arity}, {Phoenix.Endpoint.Cowboy2Handler, :init, 4})
9495
end) do
9596
:ok
9697
else

0 commit comments

Comments
 (0)