forked from airbrake/airbrake-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do a shallow copy of params hash in Notifier#build_notice (airbrake#234)
At various points in the filter call chains of building up an Airbrake notice, the code mutates the params hash that is passed in (adding keys like :priority and safe_level). A simple dup means the calling code no longer has to worry about that params hash mutating.
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters