OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/config/initializers/airbrake.rb

13 lines
409 B

airbrake = OpenProject::Configuration['airbrake']
if airbrake && airbrake['api_key']
Airbrake.configure do |config|
config.api_key = airbrake['api_key']
config.host = airbrake['host'] if airbrake['host']
config.port = Integer(airbrake['port'] || 443)
config.secure = config.port == 443
Rails.logger.info "Successfully connected to Airbrake at #{config.host}:#{config.port}."
end
end