Skip to content

Commit

Permalink
CRITICAL ERRORS
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Mar 24, 2024
1 parent 2294b41 commit c899438
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nano/node/transport/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ void nano::transport::tcp_listener::start (std::function<bool (std::shared_ptr<n
}
catch (std::exception const & ex)
{
logger.error (nano::log::type::tcp_listener, "Error while running: {}", ex.what ());
logger.critical (nano::log::type::tcp_listener, "Error: {}", ex.what ());
release_assert (false); // Should be handled earlier
}
catch (...)
{
logger.error (nano::log::type::tcp_listener, "Unknown error while running");
logger.critical (nano::log::type::tcp_listener, "Unknown error");
release_assert (false); // Should be handled earlier
}
});

Expand Down

0 comments on commit c899438

Please sign in to comment.