add log for upgrade mode