Fix logging issue which was created by fixing end condition coverage bug fix