Log bind error (#5666)
This commit is contained in:
parent
7257d2845d
commit
d87910eb15
|
@ -11,8 +11,8 @@ pub type IpEchoServer = Runtime;
|
|||
/// connects. Used by |get_public_ip_addr|
|
||||
pub fn ip_echo_server(port: u16) -> IpEchoServer {
|
||||
let bind_addr = SocketAddr::from(([0, 0, 0, 0], port));
|
||||
let tcp =
|
||||
TcpListener::bind(&bind_addr).unwrap_or_else(|_| panic!("Unable to bind to {}", bind_addr));
|
||||
let tcp = TcpListener::bind(&bind_addr)
|
||||
.unwrap_or_else(|err| panic!("Unable to bind to {}: {}", bind_addr, err));
|
||||
info!("bound to {:?}", bind_addr);
|
||||
|
||||
let server = tcp
|
||||
|
|
Loading…
Reference in New Issue