Skip to content

Commit

Permalink
Added another check
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 6, 2024
1 parent 30bfed6 commit f782a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotcom_web/plugs/debug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule DotcomWeb.Plugs.Debug do

@impl Plug
def call(conn, _) do
if Enum.member?(@pipeline) do
if [_head | _] = @pipeline do
Logger.info(
"#{Enum.map_join(@pipeline, "&", fn {k, v} -> "#{k}:#{v}" end)} **************************"
)
Expand Down

0 comments on commit f782a02

Please sign in to comment.