Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Airbrake crash with no project key #4129

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Fix Airbrake crash with no project key #4129

merged 1 commit into from
Sep 23, 2020

Conversation

javierm
Copy link
Member

@javierm javierm commented Sep 16, 2020

References

Background

We were checking the project_id but not the project_key. However, in our example secrets file we actually include a project_id but not a project_key, and so new CONSUL installations would crash in production environments.

Objectives

Ignore Errbit settings when no project key is provided.

@javierm javierm self-assigned this Sep 16, 2020
Base automatically changed from puma_start_after_upgrading_ruby to master September 22, 2020 11:49
@taitus taitus self-assigned this Sep 23, 2020
We were checking tho project_id but not the project_key. However, in our
example secrets file we actually include a project_id but not a
project_key, and so new CONSUL installations would crash in production
environments.

Although technically the application doesn't crash if no host is
defined, we're also ignoring the current environment if no host is
defined, since errbit/airbrake is unlikely to work in this scenario.
@javierm javierm merged commit e6b3031 into master Sep 23, 2020
@javierm javierm deleted the fix_airbrake branch September 23, 2020 11:17
@javierm javierm removed the 1.2 label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants