Don't output useless log file entries (#1785)

* Don't output invalid_header or frontier_req failures to log file

* Remove a few useless log entries

* Formatting
This commit is contained in:
Wesley Shillingford 2019-03-01 15:07:09 +00:00 committed by GitHub
commit 1e36e5bcc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 14 deletions

View file

@ -973,7 +973,7 @@ bool nano::bootstrap_attempt::request_frontier (std::unique_lock<std::mutex> & l
}
else
{
node->logger.try_log ("frontier_req failed, reattempting");
node->stats.inc (nano::stat::type::error, nano::stat::detail::frontier_req, nano::stat::dir::out);
}
}
}

View file

@ -867,11 +867,6 @@ void nano::network::receive_action (nano::udp_data * data_a, nano::endpoint cons
/* Already checked, unreachable */
break;
}
if (node.config.logging.network_logging () && parser.status != nano::message_parser::parse_status::outdated_version)
{
node.logger.try_log ("Could not parse message. Error: ", parser.status_string ());
}
}
else
{
@ -1140,10 +1135,6 @@ void nano::vote_processor::vote (std::shared_ptr<nano::vote> vote_a, nano::endpo
else
{
node.stats.inc (nano::stat::type::vote, nano::stat::detail::vote_overflow);
if (node.config.logging.vote_logging ())
{
node.logger.try_log ("Votes overflow");
}
}
}
}
@ -2989,10 +2980,6 @@ void nano::network::send_buffer (uint8_t const * data_a, size_t size_a, nano::en
{
this->node.stats.inc (nano::stat::type::error, nano::stat::detail::unreachable_host, nano::stat::dir::out);
}
if (this->node.config.logging.network_packet_logging ())
{
this->node.logger.try_log ("Packet send complete");
}
});
}
}