21 lines
532 B
Ruby
21 lines
532 B
Ruby
Airbrake.configure do |config|
|
|
config.error_host = '' # host
|
|
config.project_id = 1 # required, but any positive integer works
|
|
config.project_key = '' # KEY
|
|
config.performance_stats = false
|
|
config.root_directory = Rails.root
|
|
|
|
config.logger = Airbrake::Rails.logger
|
|
|
|
config.remote_config = false
|
|
|
|
config.environment = Rails.env
|
|
config.ignore_environments = %w(test development)
|
|
end
|
|
|
|
Airbrake.add_filter do |notice|
|
|
notice.ignore! if notice[:errors].any? do |error|
|
|
error[:type] == 'SignalException'
|
|
end
|
|
end
|