diff --git a/beacon/sync/src/main/java/tech/pegasys/teku/beacon/sync/fetch/FetchBlobSidecarsTask.java b/beacon/sync/src/main/java/tech/pegasys/teku/beacon/sync/fetch/FetchBlobSidecarsTask.java index 28ed85a6d30..09bd4d12f62 100644 --- a/beacon/sync/src/main/java/tech/pegasys/teku/beacon/sync/fetch/FetchBlobSidecarsTask.java +++ b/beacon/sync/src/main/java/tech/pegasys/teku/beacon/sync/fetch/FetchBlobSidecarsTask.java @@ -66,16 +66,12 @@ SafeFuture>> fetch(final Eth2Peer peer) { .thenApply(__ -> FetchResult.createSuccessful(peer, blobSidecars)) .exceptionally( err -> { - logFetchError(peer, err); + LOG.error( + String.format( + "Failed to fetch %d blob sidecars for block root %s from peer %s", + blobIdentifiers.size(), blockRoot, peer.getId()), + err); return FetchResult.createFailed(peer, Status.FETCH_FAILED); }); } - - private void logFetchError(final Eth2Peer peer, final Throwable err) { - LOG.error( - String.format( - "Failed to fetch %d blob sidecars for block root %s from peer %s", - blobIdentifiers.size(), blockRoot, peer.getId()), - err); - } }