Add the message with the provided priority.