From 4ed355c855ffc4abb89dea0fb69855c272782a89 Mon Sep 17 00:00:00 2001 From: Ashraf Date: Sat, 9 Nov 2024 19:32:05 +0700 Subject: [PATCH] Address comment --- src/Nethermind/Nethermind.Synchronization/SnapSync/Pivot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Synchronization/SnapSync/Pivot.cs b/src/Nethermind/Nethermind.Synchronization/SnapSync/Pivot.cs index 6b47fe276ce..58ac683ac55 100644 --- a/src/Nethermind/Nethermind.Synchronization/SnapSync/Pivot.cs +++ b/src/Nethermind/Nethermind.Synchronization/SnapSync/Pivot.cs @@ -69,7 +69,7 @@ private void TrySetNewBestHeader(string msg) BlockHeader bestHeader = _blockTree.FindHeader(targetBlockNumber); if (bestHeader is not null) { - _logger.Info($"Snap - {msg} - Pivot changed from {_bestHeader?.Number} to {bestHeader.Number}"); + if (_logger.IsInfo) _logger.Info($"Snap - {msg} - Pivot changed from {_bestHeader?.Number} to {bestHeader.Number}"); _bestHeader = bestHeader; } }