mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 01:17:30 -05:00 
			
		
		
		
	
						commit
						ee5bea8f91
					
				@ -48,7 +48,7 @@ class QueryLogging
 | 
			
		||||
                $timeEnd = microtime(true);
 | 
			
		||||
                $time = $timeEnd - $timeStart;
 | 
			
		||||
            
 | 
			
		||||
                Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
 | 
			
		||||
            //    Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
 | 
			
		||||
                
 | 
			
		||||
             //if($count > 10)
 | 
			
		||||
             //    Log::info($queries);
 | 
			
		||||
 | 
			
		||||
@ -52,6 +52,7 @@ class SystemHealth
 | 
			
		||||
        } elseif (phpversion() < self::$php_version) {
 | 
			
		||||
            $system_health = "false";
 | 
			
		||||
        } elseif(!self::simpleDbCheck()) {
 | 
			
		||||
            info("db fails");
 | 
			
		||||
            $system_health = "false";
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -79,7 +80,6 @@ class SystemHealth
 | 
			
		||||
        catch (\Exception $e) {
 | 
			
		||||
            $result = false;
 | 
			
		||||
        }
 | 
			
		||||
            info("returning false");
 | 
			
		||||
 | 
			
		||||
        return $result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,6 @@ trait AppSetup
 | 
			
		||||
        
 | 
			
		||||
        $check = SystemHealth::check();
 | 
			
		||||
 | 
			
		||||
        return $check == "true";
 | 
			
		||||
        return $check['system_health'] == "true";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user