Excluded exceptions aren't excluded #27

Closed
kamui opened this Issue Oct 3, 2012 · 2 comments

Comments

Projects
None yet
3 participants

kamui commented Oct 3, 2012

I'm using Sinatra, and my list of exceptions seem to be ignored by sentry.

  Raven.configure do |config|
    config.dsn = ENV['SENTRY_DSN']
    config.environments = %w[staging production]
    config.excluded_exceptions = [
      Rack::OAuth2::Server::Abstract::Error,
      Rack::OAuth2::Server::Resource::Bearer::Unauthorized,
      Rack::OAuth2::Server::Resource::Bearer::Forbidden
    ]
  end

Sentry Screenshot

Owner

dcramer commented Oct 9, 2012

Not sure if you resolved this or not, but did you try passing them as strings vs objects? They check against the class name, and currently theres no support for actual object passing.

@twooster twooster pushed a commit to twooster/raven-ruby that referenced this issue Dec 20, 2012

Tony Wooster Fix github #27, non-string excluded exceptions
This commit fixes Github issue #27
(getsentry#27) by checking class
equivaleance as well as string equivalence.
f725abc
Member

nateberkopec commented Feb 12, 2013

Fix was merged, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment