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

Change default severity for handled errors to be error and allow options to be passed in #7

Merged
merged 3 commits into from
Sep 26, 2019

Conversation

JWA111
Copy link
Contributor

@JWA111 JWA111 commented Sep 25, 2019

Fix notify to actually support the passing of options, also bugsnag sets the default severity for handled errors to warning, really a handled error is still an error. { severity: 'warning' } should be passed in if something really is just a warning.

@JWA111 JWA111 requested a review from a team September 25, 2019 21:04
@JWA111 JWA111 added bug Something isn't working enhancement New feature or request labels Sep 25, 2019
Copy link
Member

@mgreystone mgreystone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question but nothing that should block this from shipping.

index.js Outdated
}

if (notifiable(err)) {
const options = mergeDeepRight({ metaData, severity: 'error' }, opts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we're struggling with under-reported errors... but should we really default to error at this level? Should catchAndCry specify its severity: 'error'?

@JWA111 JWA111 merged commit ae7ea91 into master Sep 26, 2019
@JWA111 JWA111 deleted the default-severity-error branch September 26, 2019 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants