Skip to content

Commit 072645b

Browse files
committed
fix String.format in UsageManagerImpl
1 parent 2d52ad6 commit 072645b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

usage/src/main/java/com/cloud/usage/UsageManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,13 +1492,13 @@ private void createVolumeHelperEvent(UsageEventVO event) {
14921492
case EventTypes.EVENT_VOLUME_RESIZE:
14931493
volumesVOs = _usageVolumeDao.listByVolumeId(volId, event.getAccountId());
14941494
for (UsageVolumeVO volumesVO : volumesVOs) {
1495-
String delete_msg = String.format("Setting the volume with id: {} to 'deleted' in the usage_storage table for account: {}.", volId, event.getAccountId());
1496-
String create_msg = String.format("Creating a new entry in usage_volume for volume with id: {} after resize for account: {}", volId, event.getAccountId());
1495+
String delete_msg = String.format("Setting the volume with id: %s to 'deleted' in the usage_storage table for account: %s.", volId, event.getAccountId());
1496+
String create_msg = String.format("Creating a new entry in usage_volume for volume with id: %s after resize for account: %s", volId, event.getAccountId());
14971497
Long vmId = volumesVO.getVmId();
14981498
if (vmId != null) {
1499-
delete_msg = String.format("Setting the volume with id: {} for instance id: {} to 'deleted' in the usage_volume table for account: {}.",
1499+
delete_msg = String.format("Setting the volume with id: %s for instance id: %s to 'deleted' in the usage_volume table for account: %s.",
15001500
volId, vmId, event.getAccountId());
1501-
create_msg = String.format("Creating a new entry in usage_volume for volume with id: {} and instance id: {} after resize for account: {}",
1501+
create_msg = String.format("Creating a new entry in usage_volume for volume with id: %s and instance id: %s after resize for account: %s",
15021502
volId, vmId, event.getAccountId());
15031503
}
15041504
logger.debug(delete_msg);

0 commit comments

Comments
 (0)