gitlab-org--gitlab-foss/lib/gitlab/sidekiq_middleware/arguments_logger.rb

11 lines
200 B
Ruby
Raw Normal View History

2014-07-03 10:23:41 -04:00
module Gitlab
module SidekiqMiddleware
class ArgumentsLogger
def call(worker, job, queue)
Sidekiq.logger.info "arguments: #{job['args']}"
yield
end
end
end
end