mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 01:17:30 -05:00 
			
		
		
		
	Log excessively large queries
This commit is contained in:
		
							parent
							
								
									a6b2165eec
								
							
						
					
					
						commit
						57bd1f9c9d
					
				@ -52,9 +52,9 @@ class QueryLogging
 | 
			
		||||
            $timeEnd = microtime(true);
 | 
			
		||||
            $time = $timeEnd - $timeStart;
 | 
			
		||||
        
 | 
			
		||||
            //nlog($request->method().' - '.urldecode($request->url()).": $count queries - ".$time);
 | 
			
		||||
            //  if($count > 50)
 | 
			
		||||
            //nlog($queries);
 | 
			
		||||
            if($count > 150)
 | 
			
		||||
                nlog($queries);
 | 
			
		||||
            
 | 
			
		||||
            $ip = '';
 | 
			
		||||
            
 | 
			
		||||
            if(request()->header('Cf-Connecting-Ip'))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user