This PR allows overriding an event's unhandled flag, for example to mark a handled error as unhandled within a notify block:
Bugsnag.notify(some_error) do |event|
event.unhandled = true
end
The inverse also works — unhandled events can be marked as handled:
Bugsnag.add_on_error(proc do |event|
event.unhandled = false
# it may also make sense to modify the severity as well
event.severity = "warning"
end)
This will also update the associated session (if there is one) to ensure the count of handled/unhandled events remains consistent. This happens when the unhandled flag is written to, e.g.
Goal
This PR allows overriding an event's unhandled flag, for example to mark a handled error as unhandled within a
notify
block:The inverse also works — unhandled events can be marked as handled:
This will also update the associated session (if there is one) to ensure the count of handled/unhandled events remains consistent. This happens when the unhandled flag is written to, e.g.