diff --git a/CHANGELOG.md b/CHANGELOG.md index 65fe0fdf..35066185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/bugsnag.rb b/lib/bugsnag.rb index a25ed6b4..5d002a90 100644 --- a/lib/bugsnag.rb +++ b/lib/bugsnag.rb @@ -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