From 9825ed8fec8fd9722adc14d811f2255a6279344a Mon Sep 17 00:00:00 2001 From: Tim Cowlishaw Date: Wed, 20 Nov 2024 13:08:44 +0100 Subject: [PATCH] don't log 404s in sentry --- config/initializers/sentry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 3737f33b..8304ca14 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -1,5 +1,5 @@ Sentry.init do |config| config.dsn = ENV['RAVEN_DSN_URL'] config.breadcrumbs_logger = [:sentry_logger, :active_support_logger, :http_logger] - config.excluded_exceptions = ["RetryMQTTMessageJob::RetryMessageHandlerError"] + config.excluded_exceptions = ["RetryMQTTMessageJob::RetryMessageHandlerError", 'ActionController::RoutingError', 'ActiveRecord::RecordNotFound'] end