only log if blocks have been processed and logging enabled (#2115)
This commit is contained in:
		
					parent
					
						
							
								71c3c389b0
							
						
					
				
			
			
				commit
				
					
						61393fdd95
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -341,7 +341,7 @@ void nano::block_processor::process_batch (std::unique_lock<std::mutex> & lock_a
 | 
			
		|||
	}
 | 
			
		||||
	lock_a.unlock ();
 | 
			
		||||
 | 
			
		||||
	if (node.config.logging.timing_logging ())
 | 
			
		||||
	if (node.config.logging.timing_logging () && number_of_blocks_processed != 0)
 | 
			
		||||
	{
 | 
			
		||||
		node.logger.always_log (boost::str (boost::format ("Processed %1% blocks (%2% blocks were forced) in %3% %4%") % number_of_blocks_processed % number_of_forced_processed % timer_l.stop ().count () % timer_l.unit ()));
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue