Browse Source

log tenantID/ruleEntityId when RuleChain is not active

pull/1165/head
vparomskiy 8 years ago
parent
commit
840c042827
  1. 3
      application/src/main/java/org/thingsboard/server/actors/shared/ComponentMsgProcessor.java

3
application/src/main/java/org/thingsboard/server/actors/shared/ComponentMsgProcessor.java

@ -82,7 +82,8 @@ public abstract class ComponentMsgProcessor<T extends EntityId> extends Abstract
protected void checkActive() {
if (state != ComponentLifecycleState.ACTIVE) {
throw new IllegalStateException("Rule chain is not active!");
logger.warning("Rule chain is not active. Current state [{}] for processor [{}] tenant [{}]", state, tenantId, entityId);
throw new IllegalStateException("Rule chain is not active! " + entityId + " - " + tenantId);
}
}

Loading…
Cancel
Save