From df843081cde14ab31e001565ccdd7cbb9771b803 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 6 Oct 2025 10:47:07 -0400 Subject: [PATCH] fix comment --- .../java/org/apache/cloudstack/backup/veeam/VeeamClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java b/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java index 82e74a9af8d..8d4e67f53f8 100644 --- a/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java +++ b/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java @@ -90,6 +90,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator; import org.apache.commons.lang3.StringUtils; +import org.apache.logging.log4j.util.Supplier; public class VeeamClient { protected Logger logger = LogManager.getLogger(getClass()); @@ -382,8 +383,8 @@ public class VeeamClient { getRestoreVmErrorDescription(StringUtils.substringAfterLast(sessionUid, ":")))); throw new CloudRuntimeException(String.format("Restore job [%s] failed.", sessionUid)); } - logger.debug(String.format("Waiting %d seconds, out of a total of %d seconds, for the restore backup process to finish.", - (System.currentTimeMillis() - startTime) / 1000, restoreTimeout)); + logger.debug("Waiting {} seconds, out of a total of {} seconds, for the restore backup process to finish.", + (System.currentTimeMillis() - startTime) / 1000, restoreTimeout); try { Thread.sleep(1000);