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
|
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-07-07 10:43:13 +05:30
|
|
|
loggable_args = Gitlab::ErrorTracking::Processor::SidekiqProcessor.loggable_arguments(job['args'], job['class'])
|
|
|
|
logger.info "arguments: #{Gitlab::Json.dump(loggable_args)}"
|
2014-09-02 18:07:02 +05:30
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|