winterhazel commented on code in PR #9093:
URL: https://github.com/apache/cloudstack/pull/9093#discussion_r1619817293


##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java:
##########
@@ -263,9 +263,7 @@ protected DeployDestination plan(final long nodesCount, 
final DataCenter zone, f
                     logger.debug(String.format("Checking host : %s for 
capacity already reserved %d", h.getName(), reserved));
                 }
                 if (capacityManager.checkIfHostHasCapacity(h.getId(), 
cpu_requested * reserved, ram_requested * reserved, false, cpuOvercommitRatio, 
memoryOvercommitRatio, true)) {
-                    if (logger.isDebugEnabled()) {
-                        logger.debug(String.format("Found host : %s for with 
enough capacity, CPU=%d RAM=%s", h.getName(), cpu_requested * reserved, 
toHumanReadableSize(ram_requested * reserved)));
-                    }
+                    logger.debug(String.format("Found host {} with enough 
capacity: CPU={} RAM={}", h.getName(), cpu_requested * reserved, 
toHumanReadableSize(ram_requested * reserved)));

Review Comment:
   ```suggestion
                       logger.debug("Found host {} with enough capacity: CPU={} 
RAM={}", h.getName(), cpu_requested * reserved, 
toHumanReadableSize(ram_requested * reserved));
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to