} else if (oldCount.warningCount() == record.warningCount()) {
getLog().info(String.format("Warning count for %s remains steady at %s", record.source(), record.warningCount()));
} else {
String diff = generateDiff(oldCount, record);
if (operationMode == OperationMode.FORCE) {
getLog().warn(String.format("Against my better judgement, forcing warning count increase for %s from %s to %s; new warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
recordWarningCountInDatabase(record);
} else {
getLog().error(String.format("Failing build with increase for %s from %s to %s; changed warnings:\n%s", record.source(), oldCount.warningCount(), record.warningCount(), diff));
addFailure(String.format("Failing build with %s warning count %s higher than previous mark of %s; see %s for warning details", record.source(), record.warningCount(), oldCount.warningCount(), logFile));
}