diff --git a/src/main/java/network/brightspots/rcv/OutputWriter.java b/src/main/java/network/brightspots/rcv/OutputWriter.java index dcf4840f..46676f16 100644 --- a/src/main/java/network/brightspots/rcv/OutputWriter.java +++ b/src/main/java/network/brightspots/rcv/OutputWriter.java @@ -184,6 +184,9 @@ private String sanitizeSliceWithoutCollisions(String sliceId) { while (uniqueSanitizedIds.contains(sanitizedSliceId)) { sanitizedSliceId = String.format("%s_%d", sanitizeStringForOutput(sliceId), increment); increment++; + } + + if (increment > 1) { Logger.warning("The sanitized filename for Precinct %s results is not unique" + " and has been renamed to %s", sliceId, sanitizedSliceId); }