Fix log() when filtering by filename