From 830be41f65bf2f0095e250dd325a14dbcd3e3265 Mon Sep 17 00:00:00 2001 From: Advaita Saha Date: Wed, 18 Dec 2024 20:49:35 +0530 Subject: [PATCH] logs summarized --- nimbus/core/chain/forked_chain.nim | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nimbus/core/chain/forked_chain.nim b/nimbus/core/chain/forked_chain.nim index 184cf99c2..93970a222 100644 --- a/nimbus/core/chain/forked_chain.nim +++ b/nimbus/core/chain/forked_chain.nim @@ -223,11 +223,18 @@ proc writeBaggage(c: ForkedChainRef, target: Hash32) = prevHash = header.parentHash count.inc - notice "Finalized blocks persisted", - numberOfBlocks = count, - last = target.short, - baseNumber = c.baseHeader.number, - baseHash = c.baseHash.short + if count > 1: + notice "Finalized blocks persisted", + numberOfBlocks = count, + last = target.short, + baseNumber = c.baseHeader.number, + baseHash = c.baseHash.short + else: + debug "Finalized blocks persisted", + numberOfBlocks = count, + last = target.short, + baseNumber = c.baseHeader.number, + baseHash = c.baseHash.short func updateBase(c: ForkedChainRef, pvarc: PivotArc) = ## Remove obsolete chains, example: