From cd7e21b6b15db98579d21c7828f7366f226addbf Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Mon, 1 Jul 2013 15:09:06 -0700 Subject: [PATCH] CLOUDSTACK-236: log uuid instead of actual db id, in the updateNetworkOffering method --- server/src/com/cloud/network/NetworkServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/network/NetworkServiceImpl.java b/server/src/com/cloud/network/NetworkServiceImpl.java index 5e900bbaaa4..83468718fe6 100755 --- a/server/src/com/cloud/network/NetworkServiceImpl.java +++ b/server/src/com/cloud/network/NetworkServiceImpl.java @@ -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; } }