use single quote to log values.

Double quotes were inherited from JUL log syntax
pull/130/merge
Mahmoud Ben Hassine 7 years ago
parent 4b7ed47da3
commit a9390c9217

@ -43,9 +43,9 @@ class DefaultRuleListener implements RuleListener {
public void afterEvaluate(final Rule rule, final Facts facts, final boolean evaluationResult) {
final String ruleName = rule.getName();
if (evaluationResult) {
LOGGER.info("Rule ''{}'' triggered", ruleName);
LOGGER.info("Rule '{}' triggered", ruleName);
} else {
LOGGER.info("Rule ''{}'' has been evaluated to false, it has not been executed", ruleName);
LOGGER.info("Rule '{}' has been evaluated to false, it has not been executed", ruleName);
}
}
@ -56,13 +56,11 @@ class DefaultRuleListener implements RuleListener {
@Override
public void onSuccess(final Rule rule, final Facts facts) {
LOGGER.info("Rule ''{}'' performed successfully", rule.getName());
LOGGER.info("Rule '{}' performed successfully", rule.getName());
}
@Override
public void onFailure(final Rule rule, final Facts facts, final Exception exception) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("Rule '" + rule.getName() + "' performed with error", exception);
}
LOGGER.info("Rule '" + rule.getName() + "' performed with error", exception);
}
}

@ -127,12 +127,12 @@ public final class DefaultRulesEngine implements RulesEngine {
final String name = rule.getName();
final int priority = rule.getPriority();
if (priority > parameters.getPriorityThreshold()) {
LOGGER.info("Rule priority threshold ({}) exceeded at rule ''{}'' with priority={}, next rules will be skipped",
LOGGER.info("Rule priority threshold ({}) exceeded at rule '{}' with priority={}, next rules will be skipped",
parameters.getPriorityThreshold(), name, priority);
break;
}
if (!shouldBeEvaluated(rule, facts)) {
LOGGER.info("Rule ''{}'' has been skipped before being evaluated",
LOGGER.info("Rule '{}' has been skipped before being evaluated",
name);
continue;
}

Loading…
Cancel
Save