winterhazel commented on code in PR #8230:
URL: https://github.com/apache/cloudstack/pull/8230#discussion_r1475054904
##########
framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java:
##########
@@ -308,15 +303,15 @@ protected List<UsageVO>
getPendingUsageRecordsForQuotaAggregation(AccountVO acco
protected List<QuotaUsageVO>
createQuotaUsagesAccordingToQuotaTariffs(AccountVO account, List<UsageVO>
usageRecords,
Map<Integer, Pair<List<QuotaTariffVO>, Boolean>>
mapQuotaTariffsPerUsageType) {
String accountToString = account.reflectionToString();
- s_logger.info(String.format("Calculating quota usage of [%s] usage
records for account [%s].", usageRecords.size(), accountToString));
+ s_logger.info(String.format("Calculating quota usage of [%s] usage
records for %s.", usageRecords.size(), accountToString));
Review Comment:
`accountToString` is the account's object represented as a string, not the
account's name. This log looks like this:
```
2024-02-02 02:30:11,874 INFO [cloudstack.quota.QuotaManagerImpl]
(Usage-Job-1:null) (logid:) Calculating quota usage of [1] usage records for
{"accountName":"fabricio","domainId":1,"id":4,"uuid":"03e923c1-7d2a-4f31-8cb5-8e2f3a8c3121"}.
```
Operators can search for something like `"accountName":"dahn"`,
`"accountName":"dahn-admin"` or `"dahn"`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]