Skip to content

Commit b37d94b

Browse files
fix log
1 parent 2f7bdc9 commit b37d94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/schema/src/main/java/com/cloud/vm/dao/VMInstanceDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ public Map<Long, VirtualMachine.PowerState> updatePowerState(
11071107
private boolean isPowerStateInSyncWithInstanceState(final VirtualMachine.PowerState powerState, final long powerHostId, final VMInstanceVO instance) {
11081108
State instanceState = instance.getState();
11091109
if (instanceState == null) {
1110-
s_logger.warn(String.format("VM %s has null instance state during power state sync check, treating as out of sync", instance));
1110+
logger.warn("VM {} has null instance state during power state sync check, treating as out of sync", instance);
11111111
return false;
11121112
}
11131113
if ((powerState == VirtualMachine.PowerState.PowerOff && instanceState == State.Running)

0 commit comments

Comments
 (0)