Two ways:
Either, you can set the nullglob shell option:
shopt -s nullglob
for f in ~/logs/*.log
do
echo "processing $f"
done
or test for the existence of a file:
for f in ~/logs/*.log
do
[[ -f "$f" ]] || continue
echo "processing $f"
done