Skip to content

Commit 5e47e6e

Browse files
committed
Update Debug phase to use Logger over IO.puts
1 parent 9a6394d commit 5e47e6e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/absinthe/phase/debug.ex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ defmodule Absinthe.Phase.Debug do
33

44
@moduledoc false
55

6-
alias Absinthe.Blueprint
6+
require Logger
77

8-
@spec run(any, Keyword.t()) :: {:ok, Blueprint.t()}
8+
@spec run(any, Keyword.t()) :: {:ok, Absinthe.Blueprint.t()}
99
def run(input, _options \\ []) do
10-
if System.get_env("DEBUG") do
11-
IO.inspect(input, label: :debug_blueprint_output)
12-
end
13-
10+
Logger.debug("[Absinthe Blueprint]", input)
1411
{:ok, input}
1512
end
1613
end

0 commit comments

Comments
 (0)