Skip to content

Commit 43e6467

Browse files
committed
Exclude NotFoundError from Sentry reporting
This error is handled by showing a 404 page to the user, so it doesn't need to be reported to Sentry. Add it to the excluded_exceptions list in the Sentry initializer.
1 parent c89e831 commit 43e6467

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)