Skip to content

Commit 6eef535

Browse files
Remove "VM" on logs as vm.toString() already appends VM-<details>
1 parent 5227089 commit 6eef535

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4486,15 +4486,15 @@ private void orchestrateMigrateForScale(final String vmUuid, final long srcHostI
44864486
throw new CloudRuntimeException("Unable to complete migration for " + vm);
44874487
}
44884488
} catch (final OperationTimedoutException e) {
4489-
s_logger.debug(String.format("Error while checking the vm %s on %s", vm, dstHost), e);
4489+
s_logger.debug(String.format("Error while checking the %s on %s", vm, dstHost), e);
44904490
}
44914491

44924492
migrated = true;
44934493
} finally {
44944494
if (!migrated) {
44954495
s_logger.info("Migration was unsuccessful. Cleaning up: " + vm);
44964496

4497-
String alertSubject = String.format("Unable to migrate VM [%s] from %s in Zone [%s] and Pod [%s].",
4497+
String alertSubject = String.format("Unable to migrate %s from %s in Zone [%s] and Pod [%s].",
44984498
vm.getInstanceName(), fromHost, dest.getDataCenter().getName(), dest.getPod().getName());
44994499
String alertBody = "Migrate Command failed. Please check logs.";
45004500
_alertMgr.sendAlert(alertType, fromHost.getDataCenterId(), fromHost.getPodId(), alertSubject, alertBody);

0 commit comments

Comments
 (0)