Fixed log reader filtering logic