Make logging less verbose. (Node count.)
MODIFY
MagicalCryptoWallet.Tests/P2pTests.cs
MagicalCryptoWallet.Tests/P2pTests.cs
@@ -165,7 +165,12 @@ namespace MagicalCryptoWallet.Tests
{
var nodes = sender as NodesCollection;
Interlocked.Increment(ref _nodeCount);
- Logger.LogInfo<P2pTests>($"Node count: {Interlocked.Read(ref _nodeCount)}.");
+ if(Interlocked.Read(ref _nodeCount) == 8)
+ {
+ Logger.LogTrace<P2pTests>($"Max node count reached: {Interlocked.Read(ref _nodeCount)}.");
+ }
+
+ Logger.LogTrace<P2pTests>($"Node count: {Interlocked.Read(ref _nodeCount)}.");
}
private void ConnectedNodes_Removed(object sender, NodeEventArgs e)
{

Make logging less verbose. (Node count.)