debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb
2023-01-12 18:35:48 +00:00

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