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:
Mamy Ratsimbazafy 2020-10-03 08:35:45 +02:00 committed by GitHub
parent 7a5f389f64
commit b57693ec0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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