APISonar


com.alibaba.csp.sentinel.cluster.log.ClusterClientStatLogUtil.log

> com > alibaba > csp > sentinel > cluster > log > ClusterClientStatLogUtil > log
com APIs alibaba APIs csp APIs sentinel APIs cluster APIs log APIs ClusterClientStatLogUtil APIs log APIs

Example 1
private void logForResult(TokenResult result) {
        switch (result.getStatus()) {
            case TokenResultStatus.NO_RULE_EXISTS:
                ClusterClientStatLogUtil.log(ClusterErrorMessages.NO_RULES_IN_SERVER);
                break;
            case TokenResultStatus.TOO_MANY_REQUEST:
                ClusterClientStatLogUtil.log(ClusterErrorMessages.TOO_MANY_REQUESTS);
                break;
            default:
        }
    }