Fix logging of invalid lines.