From 3964bb75f1df6d32fcde484d7b8ce78a7cefd35f Mon Sep 17 00:00:00 2001 From: Carles Arnal Date: Thu, 15 Dec 2022 23:54:09 +0100 Subject: [PATCH] Fix wrong logs in storage metrics store (#3043) --- .../apicurio/registry/storage/metrics/StorageMetricsStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java b/app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java index d512112f98..a808c65130 100644 --- a/app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java +++ b/app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java @@ -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); } }; @@ -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); } };