From 44c080da11aa352d33e85165248b17afcf886ced Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Mon, 12 Nov 2018 07:09:17 +0100 Subject: [PATCH] server: print log on INFO if Host reached Max Guests Limit (#3013) This should not be in DEBUG as people would want to know that the host was skipped because it didn't have enough slots available to run the VM. Signed-off-by: Wido den Hollander --- .../main/java/com/cloud/capacity/CapacityManagerImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java b/server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java index a9042a760f8..cc2d7a56b60 100644 --- a/server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java +++ b/server/src/main/java/com/cloud/capacity/CapacityManagerImpl.java @@ -1126,10 +1126,8 @@ public class CapacityManagerImpl extends ManagerBase implements CapacityManager, String hypervisorVersion = host.getHypervisorVersion(); Long maxGuestLimit = _hypervisorCapabilitiesDao.getMaxGuestsLimit(hypervisorType, hypervisorVersion); if (vmCount.longValue() >= maxGuestLimit.longValue()) { - if (s_logger.isDebugEnabled()) { - s_logger.debug("Host name: " + host.getName() + ", hostId: " + host.getId() + " already reached max Running VMs(count includes system VMs), limit is: " + - maxGuestLimit + ",Running VM counts is: " + vmCount.longValue()); - } + s_logger.info("Host name: " + host.getName() + ", hostId: " + host.getId() + " already reached max Running VMs(count includes system VMs), limit: " + + maxGuestLimit + ", Running VM count: " + vmCount.longValue()); return true; } return false;