Skip to content

Commit

Permalink
Drop discovery log to trace (#2007)
Browse files Browse the repository at this point in the history
## Issue Addressed

NA

## Proposed Changes

This was causing:

```
Nov 28 21:56:08.154 ERRO slog-async: logger dropped messages due to channel overflow, count: 44, service: libp2p
```

## Additional Info

NA
  • Loading branch information
paulhauner committed Nov 29, 2020
1 parent f718309 commit 85e6924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon_node/eth2_libp2p/src/peer_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use futures::Stream;
use hashset_delay::HashSetDelay;
use libp2p::core::multiaddr::Protocol as MProtocol;
use libp2p::identify::IdentifyInfo;
use slog::{crit, debug, error, warn};
use slog::{crit, debug, error, trace, warn};
use smallvec::SmallVec;
use std::{
net::SocketAddr,
Expand Down Expand Up @@ -238,7 +238,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
.good_peers_on_subnet(s.subnet_id)
.count();
if peers_on_subnet >= TARGET_SUBNET_PEERS {
debug!(
trace!(
self.log,
"Discovery query ignored";
"subnet_id" => format!("{:?}",s.subnet_id),
Expand Down

0 comments on commit 85e6924

Please sign in to comment.