class SidekiqLoggerMiddleware
  def call(worker_class, job, queue, _redis_pool)
    logger.info "Enqueuing #{worker_class} to queue: #{queue} with arguments: #{job['args'].try(:first)}"
    yield
  end
end

class SidekiqLoggerMiddleware
  def call(worker_class, job, queue, _redis_pool)
    logger.info "Enqueuing #{worker_class} to queue: #{queue} with job id: #{job['jid']} and arguments: #{job['args'].try(:first)}"
    yield
  end
end

Include the Job ID in our Rails Sidekiq logging
Include the Job ID in our Rails Sidekiq logging

With the change to verbose:false in sidekiq the arguments of a job are
not stored in the Sidekiq log. They are however stored in our Rails log
and adding this job id field allows us to glue these together.
