mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
debug
This commit is contained in:
@@ -124,26 +124,16 @@ App::get('/v1/health/db')
|
||||
]);
|
||||
} else {
|
||||
$failures[] = $database;
|
||||
// Add failure to output instead of throwing
|
||||
$output[] = new Document([
|
||||
'name' => $key . " ($database)",
|
||||
'status' => 'fail',
|
||||
'ping' => 0
|
||||
]);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
} catch (\Throwable) {
|
||||
var_dump($key . " ($database)",);
|
||||
$failures[] = $database;
|
||||
// Add failure to output instead of throwing
|
||||
$output[] = new Document([
|
||||
'name' => $key . " ($database)",
|
||||
'status' => 'fail',
|
||||
'ping' => 0
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!empty($failures)) {
|
||||
|
||||
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user