Skip to content

Commit

Permalink
Also log when router plugs halt
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 25, 2020
1 parent 65a0d8f commit 1776e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ defmodule Phoenix.Router do

defp build_pipes(name, pipe_through) do
plugs = pipe_through |> Enum.reverse |> Enum.map(&{&1, [], true})
{conn, body} = Plug.Builder.compile(__ENV__, plugs, init_mode: Phoenix.plug_init_mode())
{conn, body} = Plug.Builder.compile(__ENV__, plugs, init_mode: Phoenix.plug_init_mode(), log_on_halt: :debug)

quote do
defp unquote(name)(unquote(conn)), do: unquote(body)
Expand Down

0 comments on commit 1776e9d

Please sign in to comment.