diff --git a/src/Nethermind/Nethermind.Synchronization/Reporting/SyncReport.cs b/src/Nethermind/Nethermind.Synchronization/Reporting/SyncReport.cs index 17c71464dc03..48cddfc837f6 100644 --- a/src/Nethermind/Nethermind.Synchronization/Reporting/SyncReport.cs +++ b/src/Nethermind/Nethermind.Synchronization/Reporting/SyncReport.cs @@ -28,7 +28,7 @@ public class SyncReport : ISyncReport private const int NoProgressStateSyncReportFrequency = 30; private const int SyncAllocatedPeersReportFrequency = 30; private const int SyncFullPeersReportFrequency = 120; - private static readonly TimeSpan _defaultReportingIntervals = TimeSpan.FromSeconds(1); + private readonly TimeSpan _defaultReportingIntervals; public SyncReport(ISyncPeerPool syncPeerPool, INodeStatsManager nodeStatsManager, ISyncConfig syncConfig, IPivot pivot, ILogManager logManager, ITimerFactory? timerFactory = null, double tickTime = 1000) { @@ -37,6 +37,7 @@ public SyncReport(ISyncPeerPool syncPeerPool, INodeStatsManager nodeStatsManager _syncConfig = syncConfig ?? throw new ArgumentNullException(nameof(syncConfig)); _pivot = pivot ?? throw new ArgumentNullException(nameof(pivot)); _syncPeersReport = new SyncPeersReport(syncPeerPool, nodeStatsManager, logManager); + _defaultReportingIntervals = TimeSpan.FromSeconds(_logger.IsDebug ? 1 : 10); _timer = (timerFactory ?? TimerFactory.Default).CreateTimer(_defaultReportingIntervals); FastBlocksHeaders = new("Old Headers", logManager);