55import com .google .common .cache .LoadingCache ;
66import java .util .Iterator ;
77import java .util .List ;
8- import java .util .Optional ;
98import java .util .Set ;
109import java .util .concurrent .ExecutionException ;
1110import 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