are gnats attracted to coffee?
Fact: Fruit flies are attracted to and feed on decaying fruits and vegetables, drinks (including beer and wine), spills, coffee grounds, drains, trash cans, dirty mops, towels, damp clothing, moist pet food and indoor houseplants. If it's damp and remotely edible, fruit flies and their larvae will use it.