truncate logs after recover