Correct logging during XML parse failure