debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/arguments_logger.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
283 B
Ruby
Raw Normal View History

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-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