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



138
139
140
141
142
143
144
145
146
# File 'lib/upfluence/error_logger/sentry.rb', line 138

def capture_exception(exception, env)
  if env.key?('sinatra.error') && Sinatra::Base.errors.keys.any? do |klass|
    klass.is_a?(Class) && !klass.eql?(Exception) && exception.is_a?(klass)
  end
    return
  end

  super
end