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

11 lines
211 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)
2016-11-03 12:29:30 +05:30
Sidekiq.logger.info "arguments: #{JSON.dump(job['args'])}"
2014-09-02 18:07:02 +05:30
yield
end
end
end
end