Skip to content

Commit

Permalink
Merge pull request #774 from sambostock/optimize-auto-notify-boolean-…
Browse files Browse the repository at this point in the history
…check

Optimize `auto_notify` boolean check
  • Loading branch information
imjoehaines authored Feb 1, 2023
2 parents 98f999c + f23901c commit 88d0c87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

## TBD

### Enhancements

* Improve performance of `Bugsnag.notify`
| [#774](https://github.com/bugsnag/bugsnag-ruby/pull/774)
| [sambostock](https://github.com/sambostock)

## v6.25.1 (5 January 2023)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/bugsnag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def configure(validate_api_key=true)
#
# Optionally accepts a block to append metadata to the yielded report.
def notify(exception, auto_notify=false, &block)
unless auto_notify.is_a? TrueClass or auto_notify.is_a? FalseClass
unless false.equal? auto_notify or true.equal? auto_notify
configuration.warn("Adding metadata/severity using a hash is no longer supported, please use block syntax instead")
auto_notify = false
end
Expand Down

0 comments on commit 88d0c87

Please sign in to comment.