mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 03:36:05 +01:00
Use next to return out of before_send
This commit is contained in:
parent
272b98c954
commit
354407cd79
1 changed files with 2 additions and 4 deletions
|
@ -14,10 +14,8 @@ Sentry.init do |config|
|
|||
Twitter::Error::InternalServerError => 'external-service',
|
||||
}
|
||||
config.before_send = lambda do |event, hint|
|
||||
if hint[:exception].is_a?(Errors::Base)
|
||||
# These are used for user-facing errors, not when something goes wrong
|
||||
nil
|
||||
end
|
||||
# These are used for user-facing errors, not when something goes wrong
|
||||
next if hint[:exception].is_a?(Errors::Base)
|
||||
|
||||
exception_class = hint[:exception].class.name
|
||||
if exception_fingerprints.key?(exception_class)
|
||||
|
|
Loading…
Reference in a new issue