Using display format for addresses

This commit is contained in:
Dennis Schwerdel 2016-02-02 22:03:56 +01:00
parent d99d4fb91b
commit c19e1fbf75
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ impl PeerList {
}
}
for addr in &del {
debug!("Forgot peer: {:?}", addr);
debug!("Forgot peer: {}", addr);
self.peers.remove(addr);
}
del
@ -52,7 +52,7 @@ impl PeerList {
#[inline]
fn add(&mut self, addr: &SocketAddr) {
if self.peers.insert(*addr, now()+self.timeout as Time).is_none() {
info!("New peer: {:?}", addr);
info!("New peer: {}", addr);
}
}
@ -74,7 +74,7 @@ impl PeerList {
#[inline]
fn remove(&mut self, addr: &SocketAddr) {
if self.peers.remove(&addr).is_some() {
info!("Removed peer: {:?}", addr);
info!("Removed peer: {}", addr);
}
}
}