debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb
2023-01-13 15:02:22 +05:30

14 lines
283 B
Ruby

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