silence not found trace

This commit is contained in:
Pete Matsyburka committed 2026-03-28 14:50:38 +02:00
1 parent a2598b30f7
commit 8d3f0b5b98
2 files changed
+13 -2

No files matched your search

+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)