mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Fix airbrake configuration in test
This commit is contained in:
parent
8666f4f714
commit
0ef6bd0475
2 changed files with 28 additions and 0 deletions
23
config/initializers/errbit.rb
Normal file
23
config/initializers/errbit.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
module Patches
|
||||
module Airbrake
|
||||
module SyncSender
|
||||
def build_https(uri)
|
||||
super.tap do |req|
|
||||
req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Airbrake::SyncSender.prepend(::Patches::Airbrake::SyncSender)
|
||||
|
||||
Airbrake.configure do |config|
|
||||
config.host = ENV['airbrake_host']
|
||||
config.project_id = ENV['airbrake_project_id']
|
||||
config.project_key = ENV['airbrake_project_key']
|
||||
|
||||
# Uncomment for Rails apps
|
||||
config.environment = Rails.env
|
||||
config.ignore_environments = %w(development test)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue