lib/bugsnag/middleware/exception_meta_data.rb in bugsnag-6.22.1 vs lib/bugsnag/middleware/exception_meta_data.rb in bugsnag-6.23.0
- old
+ new
@@ -14,9 +14,11 @@
report.user = {id: user_id} if user_id.is_a?(String)
end
if exception.respond_to?(:bugsnag_context)
context = exception.bugsnag_context
+ # note: this should set 'context' not 'automatic_context' as it's a
+ # user-supplied value
report.context = context if context.is_a?(String)
end
if exception.respond_to?(:bugsnag_grouping_hash)
group_hash = exception.bugsnag_grouping_hash