Fix Bugsnag call to notify

Make sure we add metadata as expected:
https://docs.bugsnag.com/platforms/ruby/rails/reporting-handled-errors/#add_metadata
This commit is contained in:
Gaetan Craig-Riou
2024-11-06 13:58:34 +11:00
parent 9afd545897
commit eb66244b74
9 changed files with 19 additions and 21 deletions

View File

@@ -7,7 +7,7 @@ class ErrorsController < ApplicationController
Bugsnag.notify("404") do |event|
event.severity = "info"
event.add_metadata(:request, request.env)
event.add_metadata(:request, :request, request.env)
end
render status: :not_found, formats: :html
end