CLOUDSTACK-236: log uuid instead of actual db id, in the updateNetworkOffering method

This commit is contained in:
Alena Prokharchyk 2013-07-01 15:09:06 -07:00
parent e950b3a9fa
commit cd7e21b6b1
1 changed files with 3 additions and 2 deletions

View File

@ -2025,7 +2025,8 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
}
// check if the network is upgradable
if (!canUpgrade(network, oldNetworkOfferingId, networkOfferingId)) {
throw new InvalidParameterValueException("Can't upgrade from network offering " + oldNetworkOfferingId + " to " + networkOfferingId + "; check logs for more information");
throw new InvalidParameterValueException("Can't upgrade from network offering " + oldNtwkOff.getUuid() +
" to " + networkOffering.getUuid() + "; check logs for more information");
}
restartNetwork = true;
networkOfferingChanged = true;
@ -2333,7 +2334,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
return false;
}
if (!oldNetworkOffering.getTags().equalsIgnoreCase(newNetworkOffering.getTags())) {
s_logger.debug("Network offerings " + newNetworkOfferingId + " and " + oldNetworkOfferingId + " have different tags, can't upgrade");
s_logger.debug("Network offerings " + newNetworkOffering.getUuid() + " and " + oldNetworkOffering.getUuid() + " have different tags, can't upgrade");
return false;
}
}