Skip to content

Commit

Permalink
add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
pinetops committed Sep 2, 2024
1 parent 408dc31 commit a590dfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ash/filter/filter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,11 @@ defmodule Ash.Filter do
end

def map(expression, func) do
if expression != func.(expression) do
IO.inspect(expression, label: "expression")

Check warning on line 1152 in lib/ash/filter/filter.ex

View workflow job for this annotation

GitHub Actions / ash-ci (Picosat) / mix credo --strict

There should be no calls to `IO.inspect/1`.

Check warning on line 1152 in lib/ash/filter/filter.ex

View workflow job for this annotation

GitHub Actions / ash-ci (SimpleSat) / mix credo --strict

There should be no calls to `IO.inspect/1`.
IO.inspect(func.(expression), label: "func.(expression)")

Check warning on line 1153 in lib/ash/filter/filter.ex

View workflow job for this annotation

GitHub Actions / ash-ci (Picosat) / mix credo --strict

There should be no calls to `IO.inspect/1`.

Check warning on line 1153 in lib/ash/filter/filter.ex

View workflow job for this annotation

GitHub Actions / ash-ci (SimpleSat) / mix credo --strict

There should be no calls to `IO.inspect/1`.
end

do_map(func.(expression), func)
end

Expand Down

0 comments on commit a590dfb

Please sign in to comment.