Test and fix recover with logging toggled on and off