Skip to content

Commit

Permalink
Fix wrong logs in storage metrics store (#3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal authored Dec 15, 2022
1 parent 89a6f7e commit 3964bb7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private void createTotalArtifactsCache() {
artifactsCountersLoader = new CacheLoader<>() {
@Override
public AtomicLong load(@NotNull String tenantId) {
log.info("Initializing total schemas counter, tid {}", tenantContext.tenantId());
log.info("Initializing total artifacts counter, tid {}", tenantContext.tenantId());
long count = storage.countArtifacts();
return new AtomicLong(count); }
};
Expand All @@ -129,6 +129,7 @@ private void createTotalArtifactVersionsCache() {
artifactVersionsCountersLoader = new CacheLoader<>() {
@Override
public AtomicLong load(@NotNull ArtifactVersionKey artifactVersionKey) {
log.info("Initializing total artifact versions counter for artifact gid {} ai {}, tid {}", artifactVersionKey.groupId, artifactVersionKey.artifactId, tenantContext.tenantId());
long count = storage.countArtifactVersions(artifactVersionKey.groupId, artifactVersionKey.artifactId);
return new AtomicLong(count); }
};
Expand Down

0 comments on commit 3964bb7

Please sign in to comment.