lib/honeybadger/config/defaults.rb in honeybadger-2.0.4 vs lib/honeybadger/config/defaults.rb in honeybadger-2.0.5
- old
+ new
@@ -10,10 +10,12 @@
'AbstractController::ActionNotFound',
'CGI::Session::CookieStore::TamperedWithCookie',
'Mongoid::Errors::DocumentNotFound',
'Sinatra::NotFound'].map(&:freeze).freeze
+ DEVELOPMENT_ENVIRONMENTS = ['development', 'test', 'cucumber'].map(&:freeze).freeze
+
OPTIONS = {
api_key: {
description: 'The API key for your Honeybadger project.',
default: nil
},
@@ -45,11 +47,11 @@
description: 'Prevents Honeybadger from starting entirely.',
default: false
},
development_environments: {
description: 'Environments which will not report data by default (use report_data to enable/disable explicitly).',
- default: ['development'.freeze, 'test'.freeze, 'cucumber'.freeze].freeze
+ default: DEVELOPMENT_ENVIRONMENTS
},
:'send_data_at_exit' => {
description: 'Send remaining data when Ruby exits.',
default: true
},
@@ -156,11 +158,15 @@
:'exceptions.enabled' => {
description: 'Enable automatic reporting of exceptions.',
default: true
},
:'exceptions.ignore' => {
- description: 'A list of exceptions to ignore.',
+ description: 'A list of additional exceptions to ignore (includes default ignored exceptions).',
default: IGNORE_DEFAULT
+ },
+ :'exceptions.ignore_only' => {
+ description: 'A list of exceptions to ignore (overrides the default ignored exceptions).',
+ default: [].freeze
},
:'exceptions.ignored_user_agents' => {
description: 'A list of user agents to ignore.',
default: [].freeze
},