diff --git a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java index fa20f3c04bc..18bfc165056 100644 --- a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java +++ b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java @@ -92,7 +92,7 @@ public ActionExecutionStatus execute(ActionType actionType, Map .orElse(new ActionExecutionStatus(ActionExecutionStatus.Status.FAILED, eventContext)); } catch (ActionExecutionRuntimeException e) { // todo: add to diagnostics - LOG.error("Skip executing actions for action type: " + actionType.name() + ". Error: " + e.getMessage(), e); + LOG.debug("Skip executing actions for action type: " + actionType.name(), e); return new ActionExecutionStatus(ActionExecutionStatus.Status.FAILED, eventContext); } @@ -112,10 +112,7 @@ private List getActionsByActionType(ActionType actionType, String tenant private void validateActions(List actions, ActionType actionType) throws ActionExecutionException { if (CollectionUtils.isEmpty(actions)) { - if (LOG.isDebugEnabled()) { - LOG.debug("No actions found for action type: " + actionType); - } - return; + throw new ActionExecutionRuntimeException("No actions found for action type: " + actionType); } if (actions.size() > 1) {