Skip to content

Commit

Permalink
fix logging message location
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Nov 4, 2024
1 parent 634b585 commit 24ff1f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/network/brightspots/rcv/OutputWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 24ff1f6

Please sign in to comment.