# frozen_string_literal: true

Raven.configure do |config|
  config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
  config.release = "nemo@#{configatron.system_version}"
  config.current_environment = Rails.env.to_s

  if Rails.env.production?
    # Don't block requests on synchronous error reporting.
    config.async = lambda { |event|
      SentryJob.perform_later(event)
    }
  end
end

# frozen_string_literal: true

Raven.configure do |config|
  config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
  config.release = "nemo@#{configatron.system_version}"
  config.current_environment = Rails.env.to_s

  # Don't block requests on synchronous error reporting.
  config.async = lambda { |event|
    SentryJob.perform_later(event)
  }
end

Use DJ in development too
11106: Use DJ in development too
