Skip to content

Commit 813f9bf

Browse files
winterhazeldhslove
authored andcommitted
Adjust misformatted logs (apache#9889)
* Adjust a Quota balance calculation log * Fix another log
1 parent e028148 commit 813f9bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected void processQuotaBalanceForAccount(AccountVO accountVo, List<QuotaUsag
157157
.map(quotaUsageVO -> new Pair<>(quotaUsageVO.getStartDate(), quotaUsageVO.getEndDate()))
158158
.collect(Collectors.toCollection(LinkedHashSet::new));
159159

160-
logger.info(String.format("Processing quota balance for account[{}] between [{}] and [{}].", accountToString, startDate, lastQuotaUsageEndDate));
160+
logger.info("Processing quota balance for account [{}] between [{}] and [{}].", accountToString, startDate, lastQuotaUsageEndDate);
161161

162162
long accountId = accountVo.getAccountId();
163163
long domainId = accountVo.getDomainId();

server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ protected Pair<Map<Volume, List<StoragePool>>, List<Volume>> findSuitablePoolsFo
17951795
useLocalStorage = diskOffering.isUseLocalStorage();
17961796
}
17971797
diskProfile.setUseLocalStorage(useLocalStorage);
1798-
logger.debug(String.format("Calling StoragePoolAllocators to find suitable pools to allocate volume [{}] necessary to deploy VM [{}].", toBeCreated.getUuid(), vmProfile.getUuid()));
1798+
logger.debug("Calling StoragePoolAllocators to find suitable pools to allocate volume [{}] necessary to deploy VM [{}].", toBeCreated.getUuid(), vmProfile.getUuid());
17991799
boolean foundPotentialPools = tryToFindPotentialPoolsToAlocateVolume(vmProfile, plan, avoid, returnUpTo, suitableVolumeStoragePools, toBeCreated, diskProfile);
18001800

18011801
if (avoid.getPoolsToAvoid() != null) {

0 commit comments

Comments
 (0)