airbrakex icon indicating copy to clipboard operation
airbrakex copied to clipboard

support for boolean values in `:ignore` config key

Open ktravers opened this issue 6 years ago • 0 comments

currently, to ignore all errors in a specific environment (such as :test or :dev), you set :ignore config to a simple function that returns true:

config :airbrakex,
  ignore: fn(_error) ->
    true
  end

it'd be more concise / convenient to allow users to set a boolean value here instead:

config :airbrakex, ignore: true

i have a branch open with the change. let me know if this is something you want to support, and i'll be happy to open a PR.

ktravers avatar Jan 24 '19 01:01 ktravers