-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
airbrake-ruby: make sure optional filters are loaded
Fixes #460 (blacklist_keys config doesn't work) The problem was that we never reconfigured already instantiated notifiers. We always spawn notifiers as soon as the library is required but they get spawned without some of default filters that are supposed to work given certain options such as `blacklist_keys`. The new `#reset` method respawns all notifiers on `#configure`. We have to respawn so the new notifiers pickup the config. We need to spawn without the user config so all the methods are working (e.g. notify returns a rejected promise and such).
- Loading branch information
Showing
3 changed files
with
69 additions
and
5 deletions.
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
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