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 overwriting of the event's error level set by the user when capturing an ErrorException exception #1251

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

ste93cry
Copy link
Collaborator

@ste93cry ste93cry commented Oct 18, 2021

Fixes #1248: when a user set the error level on the event, we should not override it with the severity taken from the ErrorException exception. While fixing the bug, I also noticed that the tests were faulty because we were using the same instance of the event for both the input and the output, making the test always pass regardless of the expectations

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

This looks good to me 👍

@ste93cry ste93cry requested a review from Jean85 October 19, 2021 18:39
@Jean85 Jean85 merged commit a8f3b97 into master Oct 22, 2021
@Jean85 Jean85 deleted the fix/event-log-level-overridden-by-exception-severity branch October 22, 2021 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log at "Error" Level assigned "Info" Level in sentry
3 participants