debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb
2019-02-15 15:39:39 +05:30

12 lines
242 B
Ruby

# frozen_string_literal: true
module Gitlab
module SidekiqMiddleware
class ArgumentsLogger
def call(worker, job, queue)
Sidekiq.logger.info "arguments: #{JSON.dump(job['args'])}"
yield
end
end
end
end