You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: log_as_warning.rb
    path of file: ./repos/vets-api/lib/sentry/scrubbers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# only change from previous file was Processor was renamed to Scrubbers

require 'common/exceptions'
require 'evss/error_middleware'
require 'evss/disability_compensation_form/gateway_timeout'

module Sentry
  module Scrubbers
    class LogAsWarning
      SENTRY_LOG_LEVEL_WARNING = 30
      RELEVANT_EXCEPTIONS = [
        Common::Exceptions::Gat
    
      def process(data)
        stringified_data = data.deep_stringify_keys
        return stringified_data if stringified_data['exception'].blank?
        return set_warning_level(stringified_data) if stringified_data['extra'].try(:[], 'log_as_warning')

        exception_class = get_exception_class(stringified_data)

        RELEVANT_EXCEPTIONS.each do |relevant_exception|
          return set_warning_level(stringified_data) if exception_class <= relevant_exception
        end

        stringified_data
      end