Copter: remove log CLI code when CLI disabled