vishesh92 commented on code in PR #9873:
URL: https://github.com/apache/cloudstack/pull/9873#discussion_r1900613566


##########
server/src/main/java/org/apache/cloudstack/vm/schedule/VMSchedulerImpl.java:
##########
@@ -112,7 +112,8 @@ public void updateScheduledJob(VMScheduleVO vmSchedule) {
     @Override
     public Date scheduleNextJob(VMScheduleVO vmSchedule, Date timestamp) {
         if (!vmSchedule.getEnabled()) {
-            logger.debug(String.format("VM Schedule [id=%s] for VM [id=%s] is 
disabled. Not scheduling next job.", vmSchedule.getUuid(), 
vmSchedule.getVmId()));
+            logger.debug("VM Schedule {} for VM {} with id {} is disabled. Not 
scheduling next job.",
+                    vmSchedule::toString, () -> 
userVmManager.getUserVm(vmSchedule.getVmId()), vmSchedule::getVmId);

Review Comment:
   Yes.



-- 
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