Skip to content

Commit 5154c69

Browse files
author
klaus.freitas.scclouds
committed
log refactor
1 parent 3ea0aa3 commit 5154c69

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotFromVMSnapshotCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void create() throws ResourceAllocationException {
164164

165165
@Override
166166
public void execute() {
167-
logger.info("CreateSnapshotFromVMSnapshotCmd with vm snapshot id:{} and snapshot id:{} starts:{}", () -> getVMSnapshotId(), () -> getEntityId(), () -> System.currentTimeMillis());
167+
logger.info("CreateSnapshotFromVMSnapshotCmd with vm snapshot id:{} and snapshot id:{} starts:{}", getVMSnapshotId(), getEntityId(), System.currentTimeMillis());
168168
CallContext.current().setEventDetails("Vm Snapshot Id: "+ this._uuidMgr.getUuid(VMSnapshot.class, getVMSnapshotId()));
169169
Snapshot snapshot = null;
170170
try {

api/src/main/java/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ public void execute() {
788788
message.append(", Please check the affinity groups provided, there may not be sufficient capacity to follow them");
789789
}
790790
}
791-
logger.info("{}: {}", () -> message.toString(), () -> ex.getLocalizedMessage());
791+
logger.info("{}: {}", message.toString(), ex.getLocalizedMessage());
792792
logger.debug(message.toString(), ex);
793793
throw new ServerApiException(ApiErrorCode.INSUFFICIENT_CAPACITY_ERROR, message.toString());
794794
}

0 commit comments

Comments
 (0)