Get number of spaces correct in both cases.
@@ -70,8 +70,7 @@ public class Group {
long deviation = nodes.stream().filter(node -> node.isWorking() == Boolean.TRUE).mapToLong(node -> Math.abs(node.getActiveDocuments() - average)).sum();
boolean isDeviationSmall = deviation <= (activeDocs * MAX_UNBALANCE);
if ((!isContentWellBalanced.get() || isDeviationSmall != isContentWellBalanced.get()) && (activeDocs > 0)) {
- log.info("Content is " + (isDeviationSmall ? "" : "not") + " well balanced has changed to " + isDeviationSmall +
- ". Current deviation = " + deviation*100/activeDocs + " %" +
+ log.info("Content is " + (isDeviationSmall ? "" : "not ") + "well balanced. Current deviation = " + deviation*100/activeDocs + " %" +
". activeDocs = " + activeDocs + ", deviation = " + deviation + ", average = " + average);
isContentWellBalanced.set(isDeviationSmall);
}
