From 433ebd94180903125d17f085fc9a791ef398efea Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Fri, 17 May 2024 11:54:19 +1000 Subject: [PATCH] [LOGGING] Add logging for fail to confirm pivot block error (#7110) Signed-off-by: Sally MacFarlane --- .../besu/ethereum/eth/sync/fastsync/SyncTargetManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/SyncTargetManager.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/SyncTargetManager.java index 5c6091936a..c19e06f993 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/SyncTargetManager.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/SyncTargetManager.java @@ -147,7 +147,11 @@ public class SyncTargetManager extends AbstractSyncTargetManager { }) .exceptionally( error -> { - LOG.debug("Could not confirm best peer had pivot block", error); + LOG.debug( + "Could not confirm best peer {} had pivot block {}", + bestPeer.getLoggableId(), + pivotBlockHeader.getNumber(), + error); return Optional.empty(); }); }