diff --git a/p2p/src/peer.rs b/p2p/src/peer.rs index e9d3f0e44..b833602d0 100644 --- a/p2p/src/peer.rs +++ b/p2p/src/peer.rs @@ -395,7 +395,7 @@ impl Peer { } pub fn send_peer_request(&self, capab: Capabilities) -> Result<(), Error> { - debug!("Asking {} for more peers.", self.info.addr); + trace!("Asking {} for more peers.", self.info.addr); self.connection.as_ref().unwrap().lock().send( &GetPeerAddrs { capabilities: capab, diff --git a/p2p/src/serv.rs b/p2p/src/serv.rs index 2878a8995..3d6ebf9ab 100644 --- a/p2p/src/serv.rs +++ b/p2p/src/serv.rs @@ -151,9 +151,12 @@ impl Server { Ok(peer) } Err(e) => { - debug!( + trace!( "connect_peer: on {}:{}. Could not connect to {}: {:?}", - self.config.host, self.config.port, addr, e + self.config.host, + self.config.port, + addr, + e ); Err(Error::Connection(e)) } diff --git a/servers/src/grin/seed.rs b/servers/src/grin/seed.rs index a5ea00db0..f1b668708 100644 --- a/servers/src/grin/seed.rs +++ b/servers/src/grin/seed.rs @@ -172,9 +172,11 @@ fn monitor_peers( // ask them for their list of peers let mut connected_peers: Vec = vec![]; for p in peers.connected_peers() { - debug!( + trace!( "monitor_peers: {}:{} ask {} for more peers", - config.host, config.port, p.info.addr, + config.host, + config.port, + p.info.addr, ); let _ = p.send_peer_request(capabilities); connected_peers.push(p.info.addr) @@ -211,9 +213,11 @@ fn monitor_peers( config.peer_max_count() as usize, ); for p in new_peers.iter().filter(|p| !peers.is_known(&p.addr)) { - debug!( + trace!( "monitor_peers: on {}:{}, queue to soon try {}", - config.host, config.port, p.addr, + config.host, + config.port, + p.addr, ); tx.send(p.addr).unwrap(); } @@ -257,7 +261,7 @@ fn connect_to_seeds_and_preferred_peers( // If we have preferred peers add them to the connection match peers_preferred_list { Some(mut peers_preferred) => peer_addrs.append(&mut peers_preferred), - None => debug!("No preferred peers"), + None => trace!("No preferred peers"), }; if peer_addrs.len() == 0 {