silence not found trace

This commit is contained in:
Pete Matsyburka
2026-03-28 14:35:09 +02:00
parent a2598b30f7
commit 8d3f0b5b98
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
# frozen_string_literal: true
module SilenceErrors
def log_error(request, wrapper)
return if wrapper.status_code == 404
super
end
end
ActionDispatch::DebugExceptions.prepend(SilenceErrors)