mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user