From de6709853f0ca39f92859fb941a10c63e4d467db Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Mon, 8 Aug 2016 22:24:04 +0200 Subject: [PATCH] Removed duplicate error prints --- src/cloud.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cloud.rs b/src/cloud.rs index 9557774..a19228a 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -236,10 +236,7 @@ impl GenericCloud

{ try!(match socket.send_to(msg_data, addr) { Ok(written) if written == msg_data.len() => Ok(()), Ok(_) => Err(Error::Socket("Sent out truncated packet", io::Error::new(io::ErrorKind::Other, "truncated"))), - Err(e) => { - error!("Failed to send via network {}", e); - Err(Error::Socket("IOError when sending", e)) - } + Err(e) => Err(Error::Socket("IOError when sending", e)) }) } Ok(()) @@ -262,10 +259,7 @@ impl GenericCloud

{ match socket.send_to(msg_data, addr) { Ok(written) if written == msg_data.len() => Ok(()), Ok(_) => Err(Error::Socket("Sent out truncated packet", io::Error::new(io::ErrorKind::Other, "truncated"))), - Err(e) => { - error!("Failed to send via network {}", e); - Err(Error::Socket("IOError when sending", e)) - } + Err(e) => Err(Error::Socket("IOError when sending", e)) } }