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: failure_logger.rb
    path of file: ./repos/gitlabhq/lib/gitlab/mailgun/webhook_processors
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Mailgun
    module WebhookProcessors
      class FailureLogger < Base
        def execute
          log_failure if permanent_failure_over_threshold? || 
    
        def log_failure
          Gitlab::ErrorTracking::Logger.error(
            event: 'email_delivery_failure',
            mailgun_event_id: payload['id'],
            recipient: payload['recipient'],
            failure_type: payload['severity'],
            failure_reason: payload['reason'],
            failure_code: payload.dig('delivery-status', 'code'),
            failure_message: payload.dig('delivery-status', 'message')
          )
        end