debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb
2020-05-24 23:13:21 +05:30

12 lines
250 B
Ruby

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