Print top db calls by timings on info log level
This commit is contained in:
		
							parent
							
								
									9d19879bd7
								
							
						
					
					
						commit
						dc1b21c509
					
				@ -105,9 +105,6 @@ public class SqlDaoCallsAspect {
 | 
			
		||||
                logTopNTenants(snapshots, Comparator.comparingInt(DbCallStatsSnapshot::getTotalFailure).reversed(), 10,
 | 
			
		||||
                        s -> logSnapshot(s, 10, Comparator.comparing(MethodCallStatsSnapshot::getFailures).reversed(), "failures", log::debug));
 | 
			
		||||
            } else if (log.isInfoEnabled()) {
 | 
			
		||||
                log.info("Total calls statistics below:");
 | 
			
		||||
                logTopNTenants(snapshots, Comparator.comparingInt(DbCallStatsSnapshot::getTotalCalls).reversed(), 3,
 | 
			
		||||
                        s -> logSnapshot(s, 3, Comparator.comparing(MethodCallStatsSnapshot::getExecutions).reversed(), "executions", log::info));
 | 
			
		||||
                log.info("Total timing statistics below:");
 | 
			
		||||
                logTopNTenants(snapshots, Comparator.comparingLong(DbCallStatsSnapshot::getTotalTiming).reversed(), 3,
 | 
			
		||||
                        s -> logSnapshot(s, 3, Comparator.comparing(MethodCallStatsSnapshot::getTiming).reversed(), "timing", log::info));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user