We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fff9e67 + dd341a6 commit 88c4369Copy full SHA for 88c4369
config/initializers/sentry.rb
@@ -35,5 +35,15 @@
35
)
36
37
config.before_send =
38
- lambda { |event, _hint| combined_filter.filter(event.to_hash) }
+ lambda do |event, hint|
39
+ if !Rails.env.production? &&
40
+ hint[:exception].is_a?(Notifications::Client::BadRequestError) &&
41
+ hint[:exception].message.include?(
42
+ "Can’t send to this recipient using a team-only API key"
43
+ )
44
+ nil
45
+ else
46
+ combined_filter.filter(event.to_hash)
47
+ end
48
49
end
0 commit comments