Logging update (#1795)
* Fix discovery log message trigger * Bump chronicles - include https://github.com/status-im/nim-chronicles/pull/89 for better NOTICE/WARNING color
This commit is contained in:
parent
7a5f389f64
commit
b57693ec0d
|
@ -832,7 +832,7 @@ proc runDiscoveryLoop*(node: Eth2Node) {.async.} =
|
|||
new_peers = newPeers
|
||||
|
||||
if newPeers == 0:
|
||||
if node.peerPool.lenSpace() <= node.wantedPeers shr 2:
|
||||
if node.peerPool.lenCurrent() <= node.wantedPeers shr 2:
|
||||
warn "Less than 25% wanted peers and could not discover new nodes",
|
||||
discovered = len(discoveredNodes), new_peers = newPeers,
|
||||
wanted_peers = node.wantedPeers
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b60f70718f8039c5c86dfc2a4680d8c1e37cbce2
|
||||
Subproject commit b9a7c6bb0733ce8c76f0ac8c7889c5e48e7c924f
|
Loading…
Reference in New Issue