mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 04:06:04 +01:00
before_send
should be assigned a lambda
This commit is contained in:
parent
da9a170e67
commit
272b98c954
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ Sentry.init do |config|
|
|||
Excon::Error::ServiceUnavailable => 'external-service',
|
||||
Twitter::Error::InternalServerError => 'external-service',
|
||||
}
|
||||
config.before_send do |event, hint|
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue