Skip to content

Commit 94ee8e4

Browse files
authored
Merge pull request #2254 from alphagov/dont-send-not-found-errors-to-sentry
Exclude NotFoundError from Sentry reporting
2 parents c89e831 + 43e6467 commit 94ee8e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

config/initializers/sentry.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
config.debug = true
1010
config.enable_tracing = false
1111
config.environment = Settings.sentry.environment
12+
config.excluded_exceptions += %w[NotFoundError]
1213

1314
filter = ActiveSupport::ParameterFilter.new(
1415
[EmailParameterFilterProc.new(mask: Settings.sentry.filter_mask)],

0 commit comments

Comments
 (0)