Skip to content

Commit

Permalink
Use better processing timer for logging (#5843)
Browse files Browse the repository at this point in the history
* Use different processing timer

* Use single queue

* Revert to simpler
  • Loading branch information
benaadams authored and kamilchodola committed Nov 28, 2023
1 parent ad54c5f commit 4911983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void UpdateStats(Block? block, IBlockTree blockTreeCtx, int recoveryQueue
// Only output the total throughput in debug mode
if (_logger.IsDebug)
{
_logger.Debug($"- Total throughput {totalMgasPerSecond,7:F2} MGas/s | {totalTxPerSecond,9:F2} t/s | {totalBlocksPerSecond,7:F2} Blk/s | Gas gwei: {Evm.Metrics.MinGasPrice:N2} .. {Math.Max(Evm.Metrics.MinGasPrice, Evm.Metrics.EstMedianGasPrice):N2} ({Evm.Metrics.AveGasPrice:N2}) .. {Evm.Metrics.MaxGasPrice:N2}");
_logger.Debug($"- Total throughput {totalMgasPerSecond,7:F2} MGas/s | {totalTxPerSecond,9:F2} t/s | {totalBlocksPerSecond,7:F2} b/s | Gas gwei: {Evm.Metrics.MinGasPrice:N2} .. {Math.Max(Evm.Metrics.MinGasPrice, Evm.Metrics.EstMedianGasPrice):N2} ({Evm.Metrics.AveGasPrice:N2}) .. {Evm.Metrics.MaxGasPrice:N2}");
}

if (_logger.IsTrace)
Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Runner/NLog.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<highlight-row backgroundColor="NoChange" condition="level == LogLevel.Trace" foregroundColor="Magenta" />
<!-- Log Date Time -->
<highlight-word regex="^[0-9]{2} [a-zA-Z]{3} [0-9]{2}\:[0-9]{2}\:[0-9]{2}"
foregroundColor="Gray" wholeWords="true" />
foregroundColor="DarkGray" wholeWords="true" />
<!-- Urls -->
<highlight-word regex="https?://[^ \t\r\n]*" foregroundColor="DarkBlue" wholeWords="true" />
<!-- Shutdown -->
Expand Down

0 comments on commit 4911983

Please sign in to comment.