Skip to content

Commit cd63800

Browse files
committed
fix log
1 parent e81a8d9 commit cd63800

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ protected void checkIfRestoreSessionFinished(String type, String path) throws IO
382382
getRestoreVmErrorDescription(StringUtils.substringAfterLast(sessionUid, ":"))));
383383
throw new CloudRuntimeException(String.format("Restore job [%s] failed.", sessionUid));
384384
}
385-
logger.debug(String.format("Waiting %s seconds, out of a total of %s seconds, for the restore backup process to finish.", j, restoreTimeout));
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));
386387

387388
try {
388389
Thread.sleep(1000);

0 commit comments

Comments
 (0)