Skip to content

Commit

Permalink
Merge pull request #16 from TakeoutCentral/feature/severity_level
Browse files Browse the repository at this point in the history
Allow specifying severity level when capturing events
  • Loading branch information
pmb0 authored Aug 8, 2023
2 parents 59ba560 + 2ca5037 commit 18af840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sentry/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sub event_from_exception ($self, $exception, $hint = undef, $scope = undef) {

return {
event_id => $hint && $hint->{event_id},
level => Sentry::Severity->Error,
level => ($hint && $hint->{level}) || Sentry::Severity->Error,
exception => {
values => [{
type => ref($exception),
Expand Down

0 comments on commit 18af840

Please sign in to comment.