Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
network-devp2p: downgrade logging to debug, add target (#8784)
Browse files Browse the repository at this point in the history
* network-devp2p: downgrade logging to debug, add target

* network-devp2p: rename s/datagramm/datagram
  • Loading branch information
5chdn committed Jun 11, 2018
1 parent 986f485 commit 10fc74e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/network-devp2p/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl Discovery {
let dist = match Discovery::distance(&self.id_hash, &id_hash) {
Some(dist) => dist,
None => {
warn!(target: "discovery", "Attempted to update own entry: {:?}", e);
debug!(target: "discovery", "Attempted to update own entry: {:?}", e);
return;
}
};
Expand Down Expand Up @@ -181,7 +181,7 @@ impl Discovery {
let dist = match Discovery::distance(&self.id_hash, &keccak(id)) {
Some(dist) => dist,
None => {
warn!(target: "discovery", "Received ping from self");
debug!(target: "discovery", "Received ping from self");
return
}
};
Expand Down Expand Up @@ -370,7 +370,7 @@ impl Discovery {
PACKET_FIND_NODE => self.on_find_node(&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)
}
}
Expand Down

0 comments on commit 10fc74e

Please sign in to comment.