Skip to content

Commit

Permalink
Merge pull request #1139 from AntelopeIO/GH-1138-p2p-log-spam
Browse files Browse the repository at this point in the history
P2P: Do not log expected conditions in send callback
  • Loading branch information
heifner authored Feb 3, 2025
2 parents 3984428 + 364a945 commit d34c099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,9 @@ namespace eosio {
queue_write(net_msg, queue, send_buffer,
[conn{std::move(self)}, close_after_send, net_msg, block_num](boost::system::error_code ec, std::size_t ) {
if (ec) {
fc_elog(logger, "Connection - ${cid} - send failed with: ${e}", ("cid", conn->connection_id)("e", ec.message()));
if (ec != boost::asio::error::operation_aborted && ec != boost::asio::error::connection_reset && conn->socket_is_open()) {
fc_elog(logger, "Connection - ${cid} - send failed with: ${e}", ("cid", conn->connection_id)("e", ec.message()));
}
return;
}
if (net_msg == msg_type_t::signed_block)
Expand Down

0 comments on commit d34c099

Please sign in to comment.