tmp debug health db api

This commit is contained in:
shimon 2025-12-01 11:19:25 +02:00
parent cf6605746d
commit 5b2fdf7e5b

View file

@ -124,9 +124,21 @@ App::get('/v1/health/db')
]); ]);
} else { } else {
$failures[] = $database; $failures[] = $database;
// Add failure to output instead of throwing
$output[] = new Document([
'name' => $key . " ($database)",
'status' => 'fail',
'ping' => 0
]);
} }
} catch (\Throwable) { } catch (\Throwable $e) {
$failures[] = $database; $failures[] = $database;
// Add failure to output instead of throwing
$output[] = new Document([
'name' => $key . " ($database)",
'status' => 'fail',
'ping' => 0
]);
} }
} }
} }