From c596e3f7d77fb04b7881b012019f66e5bf55b213 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sun, 31 Mar 2019 17:26:28 +1100 Subject: [PATCH] Change log levels of gossipsub events --- beacon_node/eth2-libp2p/src/behaviour.rs | 4 ++-- beacon_node/eth2-libp2p/src/service.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/eth2-libp2p/src/behaviour.rs b/beacon_node/eth2-libp2p/src/behaviour.rs index fdf12f0bf..88bfd0042 100644 --- a/beacon_node/eth2-libp2p/src/behaviour.rs +++ b/beacon_node/eth2-libp2p/src/behaviour.rs @@ -12,7 +12,7 @@ use libp2p::{ tokio_io::{AsyncRead, AsyncWrite}, NetworkBehaviour, PeerId, }; -use slog::{debug, o, warn}; +use slog::{debug, o, trace, warn}; use ssz::{ssz_encode, Decodable, DecodeError, Encodable, SszStream}; use types::{Attestation, BeaconBlock}; use types::{Topic, TopicHash}; @@ -47,7 +47,7 @@ impl NetworkBehaviourEventProcess { - debug!(self.log, "Received GossipEvent"; "msg" => format!("{:?}", gs_msg)); + trace!(self.log, "Received GossipEvent"; "msg" => format!("{:?}", gs_msg)); let pubsub_message = match PubsubMessage::ssz_decode(&gs_msg.data, 0) { //TODO: Punish peer on error diff --git a/beacon_node/eth2-libp2p/src/service.rs b/beacon_node/eth2-libp2p/src/service.rs index 0dc30cf42..f52d11ef1 100644 --- a/beacon_node/eth2-libp2p/src/service.rs +++ b/beacon_node/eth2-libp2p/src/service.rs @@ -113,7 +113,7 @@ impl Stream for Service { topics, message, } => { - debug!(self.log, "Pubsub message received: {:?}", message); + trace!(self.log, "Pubsub message received: {:?}", message); return Ok(Async::Ready(Some(Libp2pEvent::PubsubMessage { source, topics,