Skip to content

Commit

Permalink
Revert some info logs back to debug given the feedback on noise in th…
Browse files Browse the repository at this point in the history
…e logs syncing with holesky

Signed-off-by: Matthew Whitehead <[email protected]>
  • Loading branch information
matthew1001 committed Jun 24, 2024
1 parent d8e2aa2 commit 96adb0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected CompletableFuture<FastSyncState> start(final FastSyncState fastSyncSta
onBonsai.clearFlatDatabase();
onBonsai.clearTrieLog();
});
LOG.info("Start fast sync with initial sync state {}", fastSyncState);
LOG.debug("Start fast sync with initial sync state {}", fastSyncState);
return findPivotBlock(fastSyncState, fss -> downloadChainAndWorldState(fastSyncActions, fss));
}

Expand All @@ -119,12 +119,12 @@ protected CompletableFuture<FastSyncState> handleFailure(final Throwable error)
} else if (rootCause instanceof SyncException) {
return CompletableFuture.failedFuture(error);
} else if (rootCause instanceof StalledDownloadException) {
LOG.info("Stalled sync re-pivoting to newer block.");
LOG.debug("Stalled sync re-pivoting to newer block.");
return start(FastSyncState.EMPTY_SYNC_STATE);
} else if (rootCause instanceof CancellationException) {
return CompletableFuture.failedFuture(error);
} else if (rootCause instanceof MaxRetriesReachedException) {
LOG.info(
LOG.debug(
"A download operation reached the max number of retries, re-pivoting to newer block");
return start(FastSyncState.EMPTY_SYNC_STATE);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public SnapSyncDownloader(

@Override
protected CompletableFuture<FastSyncState> start(final FastSyncState fastSyncState) {
LOG.info("Start snap sync with initial sync state {}", fastSyncState);
LOG.debug("Start snap sync with initial sync state {}", fastSyncState);
return findPivotBlock(fastSyncState, fss -> downloadChainAndWorldState(fastSyncActions, fss));
}

Expand Down

0 comments on commit 96adb0f

Please sign in to comment.