zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

debug.ex (320B)


      1 defmodule Absinthe.Phase.Debug do
      2   use Absinthe.Phase
      3 
      4   @moduledoc false
      5 
      6   alias Absinthe.Blueprint
      7 
      8   @spec run(any, Keyword.t()) :: {:ok, Blueprint.t()}
      9   def run(input, _options \\ []) do
     10     if System.get_env("DEBUG") do
     11       IO.inspect(input, label: :debug_blueprint_output)
     12     end
     13 
     14     {:ok, input}
     15   end
     16 end