Class: Upfluence::ErrorLogger::Sentry::RackMiddleware

Inherits:
Sentry::Rack::CaptureExceptions
  • Object
show all
Defined in:
lib/upfluence/error_logger/sentry.rb

Instance Method Summary collapse

Instance Method Details

#capture_exception(exception, env) ⇒ Object



94
95
96
97
98
99
100
# File 'lib/upfluence/error_logger/sentry.rb', line 94

def capture_exception(exception, env)
  if env.key? 'sinatra.error'
    return if Sinatra::Base.errors.keys.any? { |klass| exception.is_a?(klass) }
  end

  super(exception, env)
end