From 6642858527304f01b789ef7072813502bb4e2d46 Mon Sep 17 00:00:00 2001 From: Giulio rebuffo Date: Mon, 6 May 2024 16:57:37 +0200 Subject: [PATCH] Release: fix logs spam (#10211) for https://github.com/ledgerwatch/erigon/issues/10203 --- turbo/execution/eth1/ethereum_execution.go | 4 ++-- turbo/execution/eth1/forkchoice.go | 2 +- turbo/execution/eth1/inserters.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/turbo/execution/eth1/ethereum_execution.go b/turbo/execution/eth1/ethereum_execution.go index bf03e3c232e..4d42e386830 100644 --- a/turbo/execution/eth1/ethereum_execution.go +++ b/turbo/execution/eth1/ethereum_execution.go @@ -156,7 +156,7 @@ func (e *EthereumExecutionModule) canonicalHash(ctx context.Context, tx kv.Tx, b func (e *EthereumExecutionModule) ValidateChain(ctx context.Context, req *execution.ValidationRequest) (*execution.ValidationReceipt, error) { if !e.semaphore.TryAcquire(1) { - e.logger.Warn("ethereumExecutionModule.ValidateChain: ExecutionStatus_Busy") + e.logger.Trace("ethereumExecutionModule.ValidateChain: ExecutionStatus_Busy") return &execution.ValidationReceipt{ LatestValidHash: gointerfaces.ConvertHashToH256(libcommon.Hash{}), ValidationStatus: execution.ExecutionStatus_Busy, @@ -260,7 +260,7 @@ func (e *EthereumExecutionModule) Start(ctx context.Context) { func (e *EthereumExecutionModule) Ready(context.Context, *emptypb.Empty) (*execution.ReadyResponse, error) { if !e.semaphore.TryAcquire(1) { - e.logger.Warn("ethereumExecutionModule.Ready: ExecutionStatus_Busy") + e.logger.Trace("ethereumExecutionModule.Ready: ExecutionStatus_Busy") return &execution.ReadyResponse{Ready: false}, nil } defer e.semaphore.Release(1) diff --git a/turbo/execution/eth1/forkchoice.go b/turbo/execution/eth1/forkchoice.go index 998e761ecbb..44f8ef9393a 100644 --- a/turbo/execution/eth1/forkchoice.go +++ b/turbo/execution/eth1/forkchoice.go @@ -110,7 +110,7 @@ func writeForkChoiceHashes(tx kv.RwTx, blockHash, safeHash, finalizedHash common func (e *EthereumExecutionModule) updateForkChoice(ctx context.Context, originalBlockHash, safeHash, finalizedHash common.Hash, outcomeCh chan forkchoiceOutcome) { if !e.semaphore.TryAcquire(1) { - e.logger.Warn("ethereumExecutionModule.updateForkChoice: ExecutionStatus_Busy") + e.logger.Trace("ethereumExecutionModule.updateForkChoice: ExecutionStatus_Busy") sendForkchoiceReceiptWithoutWaiting(outcomeCh, &execution.ForkChoiceReceipt{ LatestValidHash: gointerfaces.ConvertHashToH256(common.Hash{}), Status: execution.ExecutionStatus_Busy, diff --git a/turbo/execution/eth1/inserters.go b/turbo/execution/eth1/inserters.go index c1552be45de..cfd6ea04024 100644 --- a/turbo/execution/eth1/inserters.go +++ b/turbo/execution/eth1/inserters.go @@ -36,7 +36,7 @@ func (s *EthereumExecutionModule) validatePayloadBlobs(expectedBlobHashes []libc func (e *EthereumExecutionModule) InsertBlocks(ctx context.Context, req *execution.InsertBlocksRequest) (*execution.InsertionResult, error) { if !e.semaphore.TryAcquire(1) { - e.logger.Warn("ethereumExecutionModule.InsertBlocks: ExecutionStatus_Busy") + e.logger.Trace("ethereumExecutionModule.InsertBlocks: ExecutionStatus_Busy") return &execution.InsertionResult{ Result: execution.ExecutionStatus_Busy, }, nil