BigW Consortium Gitlab

arguments_logger.rb 211 Bytes
Newer Older
Jacob Vosmaer committed
1 2 3 4
module Gitlab
  module SidekiqMiddleware
    class ArgumentsLogger
      def call(worker, job, queue)
David committed
5
        Sidekiq.logger.info "arguments: #{JSON.dump(job['args'])}"
Jacob Vosmaer committed
6 7 8 9 10
        yield
      end
    end
  end
end