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