def format_fault(message)
      if message.length > MAX_FAULT_LOG_LENGTH
        message = message[0, MAX_FAULT_LOG_LENGTH]
      end
      return message.gsub("\n", ' ')
    end
def format_fault(message)
      if message.length > MAX_FAULT_LOG_LENGTH
        message = message[0, MAX_FAULT_LOG_LENGTH]
      end
      return message.gsub("\n", ' ')
    end
Format the fault message by capping length and removing newlines.