From 4280ef500304a2bd09a57215712ce0496d4cfdd0 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 11 Oct 2021 22:13:13 -0300 Subject: [PATCH] Give more information to the user in the wrong port init warning (#2853) * Update initialize.rs * grammar Co-authored-by: teor Co-authored-by: teor --- zebra-network/src/peer_set/initialize.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zebra-network/src/peer_set/initialize.rs b/zebra-network/src/peer_set/initialize.rs index 835d9dfa..f8020444 100644 --- a/zebra-network/src/peer_set/initialize.rs +++ b/zebra-network/src/peer_set/initialize.rs @@ -246,10 +246,12 @@ async fn open_listener(config: &Config) -> (TcpListener, SocketAddr) { }; if config.listen_addr.port() == wrong_net.default_port() { warn!( - "We are configured with port {} for {:?}, but that port is the default port for {:?}", + "We are configured with port {} for {:?}, but that port is the default port for {:?}. The default port for {:?} is {}.", config.listen_addr.port(), config.network, - wrong_net + wrong_net, + config.network, + config.network.default_port(), ); }