Skip to content

Commit

Permalink
Logging update (#1795)
Browse files Browse the repository at this point in the history
* Fix discovery log message trigger

* Bump chronicles - include status-im/nim-chronicles#89 for better NOTICE/WARNING color
  • Loading branch information
mratsim authored Oct 3, 2020
1 parent 7a5f389 commit b57693e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_chain/eth2_network.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-chronicles

0 comments on commit b57693e

Please sign in to comment.