Skip to content

Commit 3964bb7

Browse files
authored
Fix wrong logs in storage metrics store (#3043)
1 parent 89a6f7e commit 3964bb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void createTotalArtifactsCache() {
113113
artifactsCountersLoader = new CacheLoader<>() {
114114
@Override
115115
public AtomicLong load(@NotNull String tenantId) {
116-
log.info("Initializing total schemas counter, tid {}", tenantContext.tenantId());
116+
log.info("Initializing total artifacts counter, tid {}", tenantContext.tenantId());
117117
long count = storage.countArtifacts();
118118
return new AtomicLong(count); }
119119
};
@@ -129,6 +129,7 @@ private void createTotalArtifactVersionsCache() {
129129
artifactVersionsCountersLoader = new CacheLoader<>() {
130130
@Override
131131
public AtomicLong load(@NotNull ArtifactVersionKey artifactVersionKey) {
132+
log.info("Initializing total artifact versions counter for artifact gid {} ai {}, tid {}", artifactVersionKey.groupId, artifactVersionKey.artifactId, tenantContext.tenantId());
132133
long count = storage.countArtifactVersions(artifactVersionKey.groupId, artifactVersionKey.artifactId);
133134
return new AtomicLong(count); }
134135
};

0 commit comments

Comments
 (0)