Pearl1594 commented on code in PR #10603:
URL: https://github.com/apache/cloudstack/pull/10603#discussion_r2011928090
##########
server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java:
##########
@@ -130,8 +129,8 @@ public List<Host> allocateTo(VirtualMachineProfile
vmProfile, DeploymentPlan pla
// FirstFitAllocator should be used for user VMs only since it
won't care whether the host is capable of routing or not
return new ArrayList<>();
}
-
- logger.debug("Looking for hosts in zone [{}], pod [{}], cluster [{}]",
dcId, podId, clusterId);
+ String paramAsStringToLog = String.format("zone [%s], pod [%s],
cluster [%s]", dcId, podId, clusterId);
+ logger.debug("Looking for hosts in {}", paramAsStringToLog);
Review Comment:
I just used the code from #8611
--
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]