Merge pull request #4129 from consul/fix_airbrake
Fix Airbrake crash with no project key
This commit is contained in:
@@ -5,7 +5,10 @@ Airbrake.configure do |config|
|
||||
|
||||
config.environment = Rails.env
|
||||
config.ignore_environments = %w[development test]
|
||||
config.ignore_environments += [Rails.env] if Rails.application.secrets.errbit_project_id.blank?
|
||||
|
||||
if config.host.blank? || config.project_id.blank? || config.project_key.blank?
|
||||
config.ignore_environments += [Rails.env]
|
||||
end
|
||||
end
|
||||
|
||||
Airbrake.add_filter do |notice|
|
||||
|
||||
Reference in New Issue
Block a user