Skip to content

Commit

Permalink
[dist] Add migration rails env to airbrake ignore list
Browse files Browse the repository at this point in the history
We set a custom rails environment in script/api_test_in_spec.sh that was
not handled by the airbrake initializer.
This commits adds it to the ignore list.
  • Loading branch information
bgeuken committed Jun 26, 2017
1 parent af35f7b commit 0b99505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/config/initializers/airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
# 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? || CONFIG['errbit_project_id'].blank?
c.ignore_environments = %w(production development test)
c.ignore_environments = %w(production development test migrate)
else
c.ignore_environments = %w(development test)
c.ignore_environments = %w(development test migrate)
end

# A list of parameters that should be filtered out of what is sent to
Expand Down

0 comments on commit 0b99505

Please sign in to comment.