Skip to content

Commit

Permalink
Don't use DarkGray (#5849)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored and kamilchodola committed Nov 28, 2023
1 parent 4911983 commit 54c8ccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ public void UpdateStats(Block? block, IBlockTree blockTreeCtx, int recoveryQueue
> 75 => whiteText,
_ => ""
};
_logger.Info($"- Block{(chunkBlocks > 1 ? $"s {chunkBlocks,-9:N0}" : " ")}{(chunkBlocks == 1 ? mgasColor : "")} {chunkMGas,7:F2}{resetColor} MGas | {chunkTx,6:N0} txs | calls {callsColor}{chunkCalls,6:N0}{resetColor} {darkGreyText}({chunkEmptyCalls,3:N0}){resetColor} | sload {chunkSload,7:N0} | sstore {sstoreColor}{chunkSstore,6:N0}{resetColor} | create {createsColor}{chunkCreates,3:N0}{resetColor}{(currentSelfDestructs - _lastSelfDestructs > 0 ? $"{darkGreyText}({-(currentSelfDestructs - _lastSelfDestructs),3:N0}){resetColor}" : "")}");
_logger.Info($"- Block throughput {mgasPerSecond,7:F2} MGas/s | {txps,9:F2} t/s | {bps,7:F2} Blk/s | recv {recoveryQueueSize,7:N0} | proc {blockQueueSize,6:N0}");
_logger.Info($"- Block{(chunkBlocks > 1 ? "s" : " ")}{(chunkBlocks == 1 ? mgasColor : "")} {chunkMGas,7:F2}{resetColor} MGas | {chunkTx,6:N0} txs | calls {callsColor}{chunkCalls,6:N0}{resetColor} {darkGreyText}({chunkEmptyCalls,3:N0}){resetColor} | sload {chunkSload,7:N0} | sstore {sstoreColor}{chunkSstore,6:N0}{resetColor} | create {createsColor}{chunkCreates,3:N0}{resetColor}{(currentSelfDestructs - _lastSelfDestructs > 0 ? $"{darkGreyText}({-(currentSelfDestructs - _lastSelfDestructs),3:N0}){resetColor}" : "")}");
_logger.Info($"- Block throughput {mgasPerSecond,7:F2} MGas/s | {txps,9:F2} t/s | {bps,7:F2} b/s | recv {recoveryQueueSize,7:N0} | proc {blockQueueSize,6:N0}");
// Only output the total throughput in debug mode
if (_logger.IsDebug)
{
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="DarkGray" wholeWords="true" />
foregroundColor="Gray" wholeWords="true" />
<!-- Urls -->
<highlight-word regex="https?://[^ \t\r\n]*" foregroundColor="DarkBlue" wholeWords="true" />
<!-- Shutdown -->
Expand Down

0 comments on commit 54c8ccb

Please sign in to comment.