2019-02-13 22:33:31 +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
|