mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
debug
This commit is contained in:
parent
2563a8f967
commit
22c90ca7ad
1 changed files with 3 additions and 3 deletions
|
|
@ -123,21 +123,21 @@ App::get('/v1/health/db')
|
|||
$output[] = new Document([
|
||||
'name' => $key . " ($database)",
|
||||
'status' => 'pass',
|
||||
'checkStart' => $checkStart,
|
||||
'now' => \microtime(true),
|
||||
'ping' => \round((\microtime(true) - $checkStart) * 1000)
|
||||
]);
|
||||
} else {
|
||||
$failures[] = $database;
|
||||
}
|
||||
} catch (\Throwable) {
|
||||
var_dump($key . " ($database)");
|
||||
$failures[] = $database;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($failures)) {
|
||||
var_dump($failures);
|
||||
//throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures));
|
||||
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures));
|
||||
}
|
||||
|
||||
$response->dynamic(new Document([
|
||||
|
|
|
|||
Loading…
Reference in a new issue