Merge pull request #10343 from jibees/9538-track-404-errors-in-bugsnag

Notify bugsnag on 404 errors
This commit is contained in:
Filipe
2023-02-16 17:45:41 +00:00
committed by GitHub

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