Wagging the tail doesn't always mean they're happy. Sometimes it can mean they're nervous or scared, or really excited. One of my dogs whines while wagging his tail when I come home, happy to see me, and the other just wags her tail.
Didn't find the answer you were looking for?