Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: log connected peer address #2672

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ void StatusPacketHandler::process(const threadpool::PacketData& packet_data, con

peers_state_->setPeerAsReadyToSendMessages(packet_data.from_node_id_, selected_peer);

LOG(log_dg_) << "Received initial status message from " << packet_data.from_node_id_ << ", network id "
LOG(log_si_) << "Received initial status message from " << packet_data.from_node_id_
<< " node address: " << dev::toAddress(packet_data.from_node_id_).toString() << ", network id "
<< peer_chain_id << ", peer DAG max level " << selected_peer->dag_level_ << ", genesis "
<< genesis_hash << ", peer pbft chain size " << selected_peer->pbft_chain_size_ << ", peer syncing "
<< std::boolalpha << selected_peer->syncing_ << ", peer pbft period " << selected_peer->pbft_period_
<< ", peer pbft round " << selected_peer->pbft_round_ << ", node major version" << node_major_version
<< ", node minor version" << node_minor_version << ", node patch version" << node_patch_version;
<< ", peer pbft round " << selected_peer->pbft_round_ << ", node major version " << node_major_version
<< ", node minor version " << node_minor_version << ", node patch version" << node_patch_version;

} else { // Standard status packet
// TODO: initial and standard status packet could be separated...
Expand Down
Loading