Skip to content

Commit 848b057

Browse files
committed
Fix print statement
1 parent 34debe8 commit 848b057

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/org/radarbase/output/worker/RestructureWorker.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ internal class RestructureWorker(
4747

4848
val numberFormat = NumberFormat.getNumberInstance()
4949

50-
logger.info("Processing topic {}: converting {} files with {} records",
51-
topic, numberFormat.format(numFiles), numberFormat.format(numOffsets))
50+
if (numOffsets == null) {
51+
logger.info("Processing topic {}: converting {} files",
52+
topic, numberFormat.format(numFiles))
53+
} else {
54+
logger.info("Processing topic {}: converting {} files with {} records",
55+
topic, numberFormat.format(numFiles), numberFormat.format(numOffsets))
56+
}
5257

5358
val seenOffsets = accountant.offsets
5459
.withFactory { ReadOnlyFunctionalValue(it) }

0 commit comments

Comments
 (0)