Commit b02cbec0ee6b6bd2979b7f8b6e825642effa904d

Authored by Andrii Shvaika
1 parent e981edd8

Minor logging improvements

@@ -153,6 +153,8 @@ public abstract class AbstractConsumerService<N extends com.google.protobuf.Gene @@ -153,6 +153,8 @@ public abstract class AbstractConsumerService<N extends com.google.protobuf.Gene
153 TbActorMsg actorMsg = actorMsgOpt.get(); 153 TbActorMsg actorMsg = actorMsgOpt.get();
154 if (actorMsg instanceof ComponentLifecycleMsg) { 154 if (actorMsg instanceof ComponentLifecycleMsg) {
155 ComponentLifecycleMsg componentLifecycleMsg = (ComponentLifecycleMsg) actorMsg; 155 ComponentLifecycleMsg componentLifecycleMsg = (ComponentLifecycleMsg) actorMsg;
  156 + log.info("[{}][{}][{}] Received Lifecycle event: {}", componentLifecycleMsg.getTenantId(), componentLifecycleMsg.getEntityId().getEntityType(),
  157 + componentLifecycleMsg.getEntityId(), componentLifecycleMsg.getEvent());
156 if (EntityType.TENANT_PROFILE.equals(componentLifecycleMsg.getEntityId().getEntityType())) { 158 if (EntityType.TENANT_PROFILE.equals(componentLifecycleMsg.getEntityId().getEntityType())) {
157 TenantProfileId tenantProfileId = new TenantProfileId(componentLifecycleMsg.getEntityId().getId()); 159 TenantProfileId tenantProfileId = new TenantProfileId(componentLifecycleMsg.getEntityId().getId());
158 tenantProfileCache.evict(tenantProfileId); 160 tenantProfileCache.evict(tenantProfileId);