Improve message logging for bulk pull requests (#3065)
* Improve message logging for bulk pull request * Improve message logging for bulk pull requests
This commit is contained in:
parent
a8e43aa8e0
commit
4aa7fc97f3
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ nano::bulk_pull_client::~bulk_pull_client ()
|
|||
connection->node->bootstrap_initiator.connections->requeue_pull (pull, network_error);
|
||||
if (connection->node->config.logging.bulk_pull_logging ())
|
||||
{
|
||||
connection->node->logger.try_log (boost::str (boost::format ("Bulk pull end block is not expected %1% for account %2%") % pull.end.to_string () % pull.account_or_head.to_account ()));
|
||||
connection->node->logger.try_log (boost::str (boost::format ("Bulk pull end block is not expected %1% for account %2% or head block %3%") % pull.end.to_string () % pull.account_or_head.to_account () % pull.account_or_head.to_string ()));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -74,7 +74,7 @@ void nano::bulk_pull_client::request ()
|
|||
|
||||
if (connection->node->config.logging.bulk_pull_logging ())
|
||||
{
|
||||
connection->node->logger.try_log (boost::str (boost::format ("Requesting account %1% from %2%. %3% accounts in queue") % pull.account_or_head.to_account () % connection->channel->to_string () % attempt->pulling));
|
||||
connection->node->logger.try_log (boost::str (boost::format ("Requesting account %1% or head block %2% from %3%. %4% accounts in queue") % pull.account_or_head.to_account () % pull.account_or_head.to_string () % connection->channel->to_string () % attempt->pulling));
|
||||
}
|
||||
else if (connection->node->config.logging.network_logging () && attempt->should_log ())
|
||||
{
|
||||
|
|
|
@ -421,7 +421,7 @@ void nano::bootstrap_connections::requeue_pull (nano::pull_info const & pull_a,
|
|||
{
|
||||
if (node.config.logging.bulk_pull_logging ())
|
||||
{
|
||||
node.logger.try_log (boost::str (boost::format ("Failed to pull account %1% down to %2% after %3% attempts and %4% blocks processed") % pull.account_or_head.to_account () % pull.end.to_string () % pull.attempts % pull.processed));
|
||||
node.logger.try_log (boost::str (boost::format ("Failed to pull account %1% or head block %2% down to %3% after %4% attempts and %5% blocks processed") % pull.account_or_head.to_account () % pull.account_or_head.to_string () % pull.end.to_string () % pull.attempts % pull.processed));
|
||||
}
|
||||
node.stats.inc (nano::stat::type::bootstrap, nano::stat::detail::bulk_pull_failed_account, nano::stat::dir::in);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue