Merge pull request #10495 from colinux/activejob-log-request-id
Tech: log request_id enqueueing a job
This commit is contained in:
commit
1846ab469c
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class ActiveJob::ApplicationLogSubscriber < ::ActiveJob::LogSubscriber
|
|||
def process_event(event, type)
|
||||
data = extract_metadata(event)
|
||||
data.merge!(extract_exception(event))
|
||||
data[:request_id] = Current.request_id if Current.request_id.present?
|
||||
|
||||
case type
|
||||
when 'enqueue_at'
|
||||
|
|
Loading…
Reference in a new issue