network-devp2p: downgrade logging to debug, add target (#8784)

* network-devp2p: downgrade logging to debug, add target

* network-devp2p: rename s/datagramm/datagram
This commit is contained in:
Afri Schoedon 2018-06-11 10:03:16 +02:00 committed by GitHub
parent 986f485b3e
commit 10fc74eb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ impl Discovery {
let dist = match Discovery::distance(&self.id_hash, &id_hash) { let dist = match Discovery::distance(&self.id_hash, &id_hash) {
Some(dist) => dist, Some(dist) => dist,
None => { None => {
warn!(target: "discovery", "Attempted to update own entry: {:?}", e); debug!(target: "discovery", "Attempted to update own entry: {:?}", e);
return; return;
} }
}; };
@ -181,7 +181,7 @@ impl Discovery {
let dist = match Discovery::distance(&self.id_hash, &keccak(id)) { let dist = match Discovery::distance(&self.id_hash, &keccak(id)) {
Some(dist) => dist, Some(dist) => dist,
None => { None => {
warn!(target: "discovery", "Received ping from self"); debug!(target: "discovery", "Received ping from self");
return return
} }
}; };
@ -370,7 +370,7 @@ impl Discovery {
PACKET_FIND_NODE => self.on_find_node(&rlp, &node_id, &from), PACKET_FIND_NODE => self.on_find_node(&rlp, &node_id, &from),
PACKET_NEIGHBOURS => self.on_neighbours(&rlp, &node_id, &from), PACKET_NEIGHBOURS => self.on_neighbours(&rlp, &node_id, &from),
_ => { _ => {
debug!("Unknown UDP packet: {}", packet_id); debug!(target: "discovery", "Unknown UDP packet: {}", packet_id);
Ok(None) Ok(None)
} }
} }