Fixes for setup process

This commit is contained in:
David Bomba 2020-06-28 20:32:18 +10:00
parent c72c8181c7
commit f05cf83853
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ class QueryLogging
$timeEnd = microtime(true); $timeEnd = microtime(true);
$time = $timeEnd - $timeStart; $time = $timeEnd - $timeStart;
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time); // Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
//if($count > 10) //if($count > 10)
// Log::info($queries); // Log::info($queries);

View File

@ -52,6 +52,7 @@ class SystemHealth
} elseif (phpversion() < self::$php_version) { } elseif (phpversion() < self::$php_version) {
$system_health = "false"; $system_health = "false";
} elseif(!self::simpleDbCheck()) { } elseif(!self::simpleDbCheck()) {
info("db fails");
$system_health = "false"; $system_health = "false";
} }
@ -79,7 +80,6 @@ class SystemHealth
catch (\Exception $e) { catch (\Exception $e) {
$result = false; $result = false;
} }
info("returning false");
return $result; return $result;
} }

View File

@ -24,6 +24,6 @@ trait AppSetup
$check = SystemHealth::check(); $check = SystemHealth::check();
return $check == "true"; return $check['system_health'] == "true";
} }
} }