are fruit flies attracted to uv light?
Another option to combat fruit flies is install UV lights that have a sticky paper behind them. Flies are naturally lured to UV rays. But once they are zapped by the light, they will fall into the sticky paper where they won't pose as a health risk to your guests.