Skip to content

Commit 7b869d1

Browse files
authored
Merge pull request #6 from hypertrace/updates-logging-level-edsclient
Update logging level to warn for eds cache client
2 parents 1a524f7 + aed4cde commit 7b869d1

File tree

1 file changed

+3
-4
lines changed
  • entity-service-client/src/main/java/org/hypertrace/entity/data/service/client

1 file changed

+3
-4
lines changed

entity-service-client/src/main/java/org/hypertrace/entity/data/service/client/EdsCacheClient.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.google.common.cache.LoadingCache;
66
import java.util.Iterator;
77
import java.util.List;
8-
import java.util.Optional;
98
import java.util.Set;
109
import java.util.concurrent.ExecutionException;
1110
import java.util.concurrent.TimeUnit;
@@ -102,7 +101,7 @@ public Entity getByTypeAndIdentifyingAttributes(String tenantId,
102101
try {
103102
return getById(tenantId, entityIdsCache.get(key));
104103
} catch (ExecutionException e) {
105-
LOG.error("Failed to fetch entity of tenantId: {}, entityId: {}",
104+
LOG.warn("Failed to fetch entity of tenantId: {}, entityId: {}",
106105
key.tenantId, key.byTypeAndIdentifyingAttributes, e);
107106
return null;
108107
}
@@ -124,7 +123,7 @@ public Entity getById(String tenantId, String entityId) {
124123
try {
125124
return entityCache.get(key);
126125
} catch (ExecutionException e) {
127-
LOG.error("Failed to fetch entity of tenantId: {}, entityId: {}",
126+
LOG.warn("Failed to fetch entity of tenantId: {}, entityId: {}",
128127
key.tenantId, key.entityId, e);
129128
return null;
130129
}
@@ -148,7 +147,7 @@ public EnrichedEntity getEnrichedEntityById(String tenantId, String entityId) {
148147
try {
149148
return enrichedEntityCache.get(edsCacheKey);
150149
} catch (ExecutionException e) {
151-
LOG.error("Failed to fetch enriched entity of tenantId: {}, entityId: {}",
150+
LOG.warn("Failed to fetch enriched entity of tenantId: {}, entityId: {}",
152151
edsCacheKey.tenantId, edsCacheKey.entityId, e);
153152
return null;
154153
}

0 commit comments

Comments
 (0)