Skip to content

Commit 533bef9

Browse files
author
Daan Hoogland
committed
trace nics additions
1 parent ea643a6 commit 533bef9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5622,9 +5622,15 @@ public Outcome<VirtualMachine> addVmToNetworkThroughJobQueue(
56225622

56235623
VmWorkJobVO workJob = null;
56245624
if (pendingWorkJobs != null && pendingWorkJobs.size() > 0) {
5625+
if (s_logger.isTraceEnabled()) {
5626+
s_logger.trace(String.format("number of add nic jobs for vm %s are %d", vm, pendingWorkJobs.size()));
5627+
}
56255628
assert pendingWorkJobs.size() == 1;
56265629
workJob = pendingWorkJobs.get(0);
56275630
} else {
5631+
if (s_logger.isTraceEnabled()) {
5632+
s_logger.trace(String.format("no add nic jobs for vm %s yet", vm));
5633+
}
56285634

56295635
workJob = new VmWorkJobVO(context.getContextId());
56305636

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ public UserVm addNicToVirtualMachine(AddNicToVMCmd cmd) throws InvalidParameterV
14561456
}
14571457
}
14581458
CallContext.current().putContextParameter(Nic.class, guestNic.getUuid());
1459-
s_logger.debug("Successful addition of " + network + " from " + vmInstance);
1459+
s_logger.debug(String.format("Successful addition of %s from %s through %s", network, vmInstance, guestNic));
14601460
return _vmDao.findById(vmInstance.getId());
14611461
}
14621462

0 commit comments

Comments
 (0)