Skip to content

Commit

Permalink
update empty storage initialization log
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Jan 27, 2025
1 parent 5c8ccdb commit 296fdf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ public void finishInitializingChainData() {
log.info("Storage initialization complete");
}

public void emptyChainData() {
log.info("Empty storage. Initialization complete.");
}

public void recordedFinalizedBlocks(final int numberRecorded, final int totalToRecord) {
log.info("Recorded {} of {} finalized blocks", numberRecorded, totalToRecord);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private SafeFuture<RecentChainData> processStoreFuture(
return storeFuture.thenApply(
maybeData -> {
if (maybeData.isEmpty()) {
STATUS_LOG.finishInitializingChainData();
STATUS_LOG.emptyChainData();
return this;
}

Expand Down

0 comments on commit 296fdf6

Please sign in to comment.