Skip to content

Commit

Permalink
Remove compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Sep 13, 2022
1 parent 93ef51c commit 9ca7542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger_json/plug/metadata_formatters/datadog_logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if Code.ensure_loaded?(Plug) do
end

if Code.ensure_loaded?(Phoenix.Router) do
defp phoenix_route(%{private: %{phoenix_router: router}, method: method, request_path: path, host: host} = conn) do
defp phoenix_route(%{private: %{phoenix_router: router}, method: method, request_path: path, host: host}) do
case Phoenix.Router.route_info(router, method, path, host) do
%{route: route} -> route
_ -> nil
Expand Down

0 comments on commit 9ca7542

Please sign in to comment.