Improved logging of the upgrade process.