Avoid to print an error when it is not occurring
@@ -231,8 +231,9 @@ class PrivateLogLogic extends AbstractLogLogic<PrivateLogValue> {
} else if (expectedValue == null) {
return true;
} else {
+ if (manager.getLogLogicConfiguration().isCheckDelayedRemoveExpectedValue()) {
log.errorf("Expected to remove %s but found %s.", expectedValue, prevValue);
- if (!manager.getLogLogicConfiguration().isCheckDelayedRemoveExpectedValue()) {
+ } else {
log.trace("'LogLogicConfiguration.checkDelayedRemoveExpectedValue' set to false, ignoring check");
return true;
}
