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

11 lines
211 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)
2016-04-14 22:18:46 -04:00
Sidekiq.logger.info "arguments: #{JSON.dump(job['args'])}"
2014-07-03 10:23:41 -04:00
yield
end
end
end
end