Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Sep 21, 2023
1 parent 5651f57 commit 3b1dedf
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,11 @@ private void tileWriter(Iterable<TileBatch> tileBatches) throws ExecutionExcepti
archive.finish(tileArchiveMetadata);
}

@SuppressWarnings("java:S2629")
private void printTileStats() {
if (LOGGER.isDebugEnabled()) {
Format format = Format.defaultInstance();
tileStats.printStats(config.debugUrlPattern());
LOGGER.debug(" # features: {}", format.integer(featuresProcessed.get()));
}
Format format = Format.defaultInstance();
tileStats.printStats(config.debugUrlPattern());
LOGGER.debug(" # features: {}", format.integer(featuresProcessed.get()));
}

private long tilesEmitted() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ record Batch(List<Tile> tiles, CompletableFuture<List<String>> stats) {}
loggers.awaitAndLog(joinFutures(readBranch.done(), writeBranch.done()), config.logInterval());

timer.stop();
if (LOGGER.isDebugEnabled()) {
tileStats.printStats(config.debugUrlPattern());
}
tileStats.printStats(config.debugUrlPattern());
stats.printSummary();
}

Expand Down
Loading

0 comments on commit 3b1dedf

Please sign in to comment.