Skip to content

Commit

Permalink
Reduce block in failure logging during stop.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 24, 2024
1 parent f841367 commit 841cbc9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/protocols/protocol_block_in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,16 @@ void protocol_block_in::complete() NOEXCEPT
void protocol_block_in::handle_organize(const code& ec,
const chain::block::cptr& block_ptr) NOEXCEPT
{
if (ec)
if (!ec)
return;

if (ec != network::error::service_stopped)
{
LOGR("Error organizing block [" << encode_hash(block_ptr->hash())
<< "] from [" << authority() << "] " << ec.message());
stop(ec);
}

stop(ec);
}

// private
Expand Down

0 comments on commit 841cbc9

Please sign in to comment.