<commit_before>require 'salemove/messaging/message_handlers/base_message_handler'

module Salemove
  module Messaging
    module MessageHandlers
      class AckMessageHandler < BaseMessageHandler

        attr_reader :response

        def handle_message(payload, msg_handler)
          logger.debug "Received message on #{destination}"
          initialize_properties msg_handler
          callback.call payload, msg_handler
          error = msg_handler.error
          logger.warn "Responder failed to acknowledge message on #{destination}: #{error}" if error
          @response = {error: error}
        rescue Exception => e
          logger.error "Exception occured while processing a message that needs to acknowledge on #{destination} : e"
        end

      end
    end<commit_msg>fixed typo in error logging<commit_after>require 'salemove/messaging/message_handlers/base_message_handler'

module Salemove
  module Messaging
    module MessageHandlers
      class AckMessageHandler < BaseMessageHandler

        attr_reader :response

        def handle_message(payload, msg_handler)
          logger.debug "Received message on #{destination}"
          initialize_properties msg_handler
          callback.call payload, msg_handler
          error = msg_handler.error
          logger.warn "Responder failed to acknowledge message on #{destination}: #{error}" if error
          @response = {error: error}
        rescue Exception => e
          logger.error "Exception occured while processing a message that needs to acknowledge on #{destination} : #{e}"
        end

      end
    end
{'fraction_non_alphanumeric': 0.06073888541014402, 'fraction_numerical': 0.0, 'mean_word_length': 2.9070904645476774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6613427', 'n_tokens_mistral': 387, 'n_tokens_neox': 376, 'n_words': 127}