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
|
2023-01-13 00:05:48 +05:30
|
|
|
include Sidekiq::ServerMiddleware
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
def call(worker, job, queue)
|
2023-01-13 00:05:48 +05:30
|
|
|
logger.info "arguments: #{Gitlab::Json.dump(job['args'])}"
|
2014-09-02 18:07:02 +05:30
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|