2019-02-15 15:39:39 +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)
|
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
|