Notify bugsnag on 404 errors

This commit is contained in:
Jean-Baptiste Bellet
2023-01-30 10:42:57 +01:00
committed by Filipe
parent 4e4a392a8c
commit 2eec3d625a

View File

@@ -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