Skip to content

Commit cd0aa8f

Browse files
committed
Disable Airbrake reports in development/test/staging environments
1 parent 39017b0 commit cd0aa8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/initializers/airbrake.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#
1010
# Configuration details:
1111
# https://github.com/airbrake/airbrake-ruby#configuration
12-
if (project_id = ENV['AIRBRAKE_PROJECT_ID']) &&
12+
if (project_id = ENV['AIRBRAKE_PROJECT_ID']) &&
1313
project_key = (ENV['AIRBRAKE_PROJECT_KEY'] || ENV['AIRBRAKE_API_KEY'])
1414
Airbrake.configure do |c|
1515
# You must set both project_id & project_key. To find your project_id and
1616
# project_key navigate to your project's General Settings and copy the
1717
# values from the right sidebar.
1818
# https://github.com/airbrake/airbrake-ruby#project_id--project_key
19-
c.project_id = project_id
19+
c.project_id = project_id
2020
c.project_key = project_key
2121

2222
# Configures the root directory of your project. Expects a String or a
@@ -43,7 +43,7 @@
4343
# unwanted environments such as :test. NOTE: This option *does not* work if
4444
# you don't set the 'environment' option.
4545
# https://github.com/airbrake/airbrake-ruby#ignore_environments
46-
c.ignore_environments = %w[test]
46+
c.ignore_environments = %w[test staging development]
4747

4848
# A list of parameters that should be filtered out of what is sent to
4949
# Airbrake. By default, all "password" attributes will have their contents

0 commit comments

Comments
 (0)