mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Notify bugsnag on 404 errors
This commit is contained in:
committed by
Filipe
parent
4e4a392a8c
commit
2eec3d625a
@@ -4,6 +4,11 @@ class ErrorsController < ApplicationController
|
||||
layout "errors"
|
||||
|
||||
def not_found
|
||||
Bugsnag.notify("404") do |event|
|
||||
event.severity = "info"
|
||||
|
||||
event.add_metadata(:request, request.env)
|
||||
end
|
||||
render status: :not_found
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user