i had this problem, but with my male puppy. he had a greenish yellow mucus that would come out of his penis occasionally when he was a little guy. it eventually went away after he was 6 months old. the vet said the same thing to me, and my guy was fine. i haven't encountered the problem with full grown dogs though.