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

13 lines
250 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
module Gitlab
module SidekiqMiddleware
class ArgumentsLogger
def call(worker, job, queue)
2020-05-24 23:13:21 +05:30
Sidekiq.logger.info "arguments: #{Gitlab::Json.dump(job['args'])}"
2014-09-02 18:07:02 +05:30
yield
end
end
end
end