Test and fix recovery with logging toggled on and off