airbrake: ignore 404s

This commit is contained in:
Kyle Drake 2024-01-21 17:57:06 +00:00
parent 8a398c3028
commit 5dafa17e36

View file

@ -199,4 +199,6 @@ Airbrake.add_filter do |notice|
# Filter out password.
notice[:params][:password] = '[Filtered]'
end
end
notice.ignore! if notice.stash[:exception].is_a?(Sinatra::NotFound)
end