Blunder.Absinthe v1.3.1 Blunder.Absinthe.ErrorHandler behaviour View Source
Behaviour for a module that handles Blunder errors in the Blunder.Absinthe middleware
Creating an error handler is as simple as this:
defmodule LogError do
use Blunder.Absinthe.ErrorHandler
require Logger
@impl Blunder.Absinthe.ErrorHandler
def call(blunder) do
Logger.error blunder.message
end
end
Then in your config…
config :blunder, error_handlers: [ LogError ]