From efa31dd5097e2797c9f766f51da67fa5623b55d6 Mon Sep 17 00:00:00 2001 From: MozirDmitriy Date: Sat, 17 May 2025 10:40:48 +0300 Subject: [PATCH] core/blockchain: remove unnecessary fmt.Sprintf in log.Error calls --- core/blockchain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 64345bc1a3..85c6ee465c 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -652,8 +652,8 @@ func (bc *BlockChain) initializeHistoryPruning(latest uint64) error { // postmerge directly on an existing DB. We could just trigger the pruning // here, but it'd be a bit dangerous since they may not have intended this // action to happen. So just tell them how to do it. - log.Error(fmt.Sprintf("Chain history mode is configured as %q, but database is not pruned.", bc.cacheConfig.ChainHistoryMode.String())) - log.Error(fmt.Sprintf("Run 'geth prune-history' to prune pre-merge history.")) + log.Error("Chain history mode is configured as %q, but database is not pruned.", bc.cacheConfig.ChainHistoryMode.String()) + log.Error("Run 'geth prune-history' to prune pre-merge history.") return fmt.Errorf("history pruning requested via configuration") } predefinedPoint := history.PrunePoints[bc.genesisBlock.Hash()]