Usually an infection will lead to bad smells or off flavors. Watch your gravity. If your gravity doesn't stop where expected, you may have an infection.
It could just be mold also. If it's not fuzzy, scoop it off and bottle it. You'll be able to tell by taste or smell whether it's drinkable.