Whether or not the information is stored in long-term memory depends on its importance. Usually for animals memories that are made during times of stress and discomfort are important for adaptive values. In the future they help avoid anything that will bring them stress. 