Skip to content

Commit

Permalink
Provide better log message when unable to resolve host
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 12, 2024
1 parent c428a75 commit 0f8bbeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,8 @@ namespace eosio {
c->send_time();
}
} else {
fc_ilog( logger, "connection failed to ${a}, ${error}", ("a", c->peer_address())( "error", err.message()));
fc_ilog(logger, "connection failed to ${a}, ${e}", ("a", c->peer_address())
("e", err == boost::asio::error::not_found ? "Unable to resolve endpoint" : err.message()));
c->close( false );
if (my_impl->increment_failed_p2p_connections) {
my_impl->increment_failed_p2p_connections();
Expand Down

0 comments on commit 0f8bbeb

Please sign in to comment.