Skip to content

Commit

Permalink
Merge pull request #383 from drcapulet/alexc-sinatra
Browse files Browse the repository at this point in the history
Ignore Sinatra::NotFound by default, format for easier diff
  • Loading branch information
nateberkopec committed Oct 28, 2015
2 parents 38c40e7 + b1cbbd6 commit 3dc5c6e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/raven/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,16 @@ class Configuration
# Sanitize values that look like credit card numbers
attr_accessor :sanitize_credit_cards

IGNORE_DEFAULT = ['ActiveRecord::RecordNotFound',
'ActionController::RoutingError',
'ActionController::InvalidAuthenticityToken',
'CGI::Session::CookieStore::TamperedWithCookie',
'ActionController::UnknownAction',
'AbstractController::ActionNotFound',
'Mongoid::Errors::DocumentNotFound']
IGNORE_DEFAULT = [
'AbstractController::ActionNotFound',
'ActionController::InvalidAuthenticityToken',
'ActionController::RoutingError',
'ActionController::UnknownAction',
'ActiveRecord::RecordNotFound',
'CGI::Session::CookieStore::TamperedWithCookie',
'Mongoid::Errors::DocumentNotFound',
'Sinatra::NotFound',
]

def initialize
self.server = ENV['SENTRY_DSN'] if ENV['SENTRY_DSN']
Expand Down

0 comments on commit 3dc5c6e

Please sign in to comment.