mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 05:02:14 +02: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',
|
Excon::Error::ServiceUnavailable => 'external-service',
|
||||||
Twitter::Error::InternalServerError => '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)
|
if hint[:exception].is_a?(Errors::Base)
|
||||||
# These are used for user-facing errors, not when something goes wrong
|
# These are used for user-facing errors, not when something goes wrong
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Reference in a new issue