debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb

11 lines
200 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Gitlab
module SidekiqMiddleware
class ArgumentsLogger
def call(worker, job, queue)
Sidekiq.logger.info "arguments: #{job['args']}"
yield
end
end
end
end