gitlab-org--gitlab-foss/lib/gitlab/sidekiq_middleware/arguments_logger.rb
2016-04-15 02:18:46 +00:00

10 lines
211 B
Ruby

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