Fixed pretty printing error in analysis output, and some more fixes to wait_for_logging