diff --git a/src/cloud.rs b/src/cloud.rs index d4ae40e..3411e3e 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -36,7 +36,7 @@ use crate::{ table::ClaimTable, traffic::TrafficStats, types::{Address, Mode, NodeId, Range, RangeList}, - util::{addr_nice, resolve, CtrlC, Duration, MsgBuffer, StatsdMsg, Time, TimeSource} + util::{addr_nice, bytes_to_hex, resolve, CtrlC, Duration, MsgBuffer, StatsdMsg, Time, TimeSource} }; pub type Hash = BuildHasherDefault; @@ -126,7 +126,12 @@ impl GenericCloud error!("{}", e) + Err(Error::DeviceIo(_, e)) if e.kind() == io::ErrorKind::AddrNotAvailable => { + info!("No address set on interface.") + } + Err(e) => { + error!("{}", e) + } } } let now = TS::now(); @@ -644,7 +649,7 @@ impl GenericCloud>().join(" ")), - ("NODE_ID", format!("{:?}", info.node_id)), + ("NODE_ID", bytes_to_hex(&info.node_id)), ], true ); @@ -673,7 +678,7 @@ impl GenericCloud