feat: add logging for health check results and PostgreSQL connection status
This commit is contained in:
@@ -23,6 +23,8 @@ app.get('/health', async (req, res) => {
|
||||
|
||||
const allOk = Object.values(postgres).every(s => s === 'connected') && influx && minio;
|
||||
|
||||
console.log("Health check results:", { postgres, influx: influx ? 'connected' : 'disconnected', minio: minio ? 'connected' : 'disconnected' });
|
||||
|
||||
res.json({
|
||||
status: allOk ? "ok" : "degraded",
|
||||
service: "api",
|
||||
|
||||
Reference in New Issue
Block a user