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:
		
					parent
					
						
							
								113c5c7823
							
						
					
				
			
			
				commit
				
					
						1e36e5bcc7
					
				
			
		
					 2 changed files with 1 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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");
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue