Give more information to the user in the wrong port init warning (#2853)

* Update initialize.rs

* grammar

Co-authored-by: teor <teor@riseup.net>

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Alfredo Garcia 2021-10-11 22:13:13 -03:00 committed by GitHub
parent 2f0926a8e4
commit 4280ef5003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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(),
);
}