Skip to content

Commit

Permalink
Set consistent context in delayed_job integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-stewart committed Nov 26, 2018
1 parent 81851b5 commit 359b05e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bugsnag/middleware/delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def call(report)
job_data[:active_job] = job.payload_object.job_data if job.payload_object.respond_to?(:job_data)
payload_data = construct_job_payload(job.payload_object)
report.context = payload_data[:display_name] if payload_data.include?(:display_name)
report.context ||= payload_data[:class] if payload_data.include?(:class)
job_data[:payload] = payload_data
end

Expand Down

0 comments on commit 359b05e

Please sign in to comment.