=tes #3101 Buffer logging output until failure

This doesn't remove all noise, but it should reduce it drastically.