Skip to content

Commit df84308

Browse files
committed
fix comment
1 parent ca5bfea commit df84308

File tree

1 file changed

+3
-2
lines changed
  • plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam

1 file changed

+3
-2
lines changed

plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
9191
import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator;
9292
import org.apache.commons.lang3.StringUtils;
93+
import org.apache.logging.log4j.util.Supplier;
9394

9495
public class VeeamClient {
9596
protected Logger logger = LogManager.getLogger(getClass());
@@ -382,8 +383,8 @@ protected void checkIfRestoreSessionFinished(String type, String path) throws IO
382383
getRestoreVmErrorDescription(StringUtils.substringAfterLast(sessionUid, ":"))));
383384
throw new CloudRuntimeException(String.format("Restore job [%s] failed.", sessionUid));
384385
}
385-
logger.debug(String.format("Waiting %d seconds, out of a total of %d seconds, for the restore backup process to finish.",
386-
(System.currentTimeMillis() - startTime) / 1000, restoreTimeout));
386+
logger.debug("Waiting {} seconds, out of a total of {} seconds, for the restore backup process to finish.",
387+
(System.currentTimeMillis() - startTime) / 1000, restoreTimeout);
387388

388389
try {
389390
Thread.sleep(1000);

0 commit comments

Comments
 (0)