Skip to content

Commit

Permalink
GH-525 Extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 3, 2024
1 parent 71174de commit 8641ecb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2821,9 +2821,11 @@ namespace eosio {
set_state(connection_state::connecting);
pending_message_buffer.reset();
buffer_queue.clear_out_queue();
fc_dlog(logger, "connect ${p}", ("p", peer_address()));
boost::asio::async_connect( *socket, endpoints,
boost::asio::bind_executor( strand,
[c = shared_from_this(), resolver, endpoints, socket=socket]( const boost::system::error_code& err, const tcp::endpoint& endpoint ) {
fc_dlog(logger, "connected ${p}", ("p", c->peer_address()));
if( !err && socket->is_open() && socket == c->socket ) {
if( c->start_session() ) {
c->send_handshake();
Expand Down

0 comments on commit 8641ecb

Please sign in to comment.