Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8:testing
obs-server
obs-server-2.8-0110-api-Only-enable-airbrake-wh...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.8-0110-api-Only-enable-airbrake-when-there-is-a-project-id-.patch of Package obs-server
From 75eb8e969236c3444c13b383777cdb337103cadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= <bgeuken@suse.de> Date: Sat, 24 Jun 2017 19:23:10 +0200 Subject: [PATCH] [api] Only enable airbrake when there is a project id configured We already skip airbrake configuration for airbrake when there is no api key set. Airbrake, unlike hoptoadnotifier, requires a project id as well. Therefor it makes sense to also skip it when the project id is missing. --- src/api/config/initializers/airbrake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/config/initializers/airbrake.rb b/src/api/config/initializers/airbrake.rb index 8b9057c5b..66d24c3d9 100644 --- a/src/api/config/initializers/airbrake.rb +++ b/src/api/config/initializers/airbrake.rb @@ -40,7 +40,7 @@ Airbrake.configure do |c| # unwanted environments such as :test. # NOTE: This option *does not* work if you don't set the 'environment' option. # https://github.com/airbrake/airbrake-ruby#ignore_environments - if CONFIG['errbit_api_key'].blank? + if CONFIG['errbit_api_key'].blank? || CONFIG['errbit_project_id'].blank? c.ignore_environments = %w(production development test) else c.ignore_environments = %w(development test) -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor