fix: keep health errors non-sensitive

This commit is contained in:
kcar 2026-05-28 11:43:59 +01:00
parent 310e273aa5
commit df40ddc286

View File

@ -90,9 +90,10 @@ async def health_check() -> Dict[str, Any]:
} }
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"
except Exception as e: except Exception as e:
logger.warning(f"Neo4j health check failed: {e}")
health_status["services"]["neo4j"] = { health_status["services"]["neo4j"] = {
"status": "unhealthy", "status": "unhealthy",
"message": f"Error checking Neo4j: {str(e)}" "message": "Error checking Neo4j"
} }
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"
@ -112,9 +113,10 @@ async def health_check() -> Dict[str, Any]:
} }
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"
except Exception as e: except Exception as e:
logger.warning(f"Supabase health check failed: {e}")
health_status["services"]["supabase"] = { health_status["services"]["supabase"] = {
"status": "unhealthy", "status": "unhealthy",
"message": f"Error checking Supabase Auth API: {str(e)}" "message": "Error checking Supabase Auth API"
} }
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"
@ -141,9 +143,10 @@ async def health_check() -> Dict[str, Any]:
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"
except Exception as e: except Exception as e:
logger.warning(f"Redis health check failed: {e}")
health_status["services"]["redis"] = { health_status["services"]["redis"] = {
"status": "unhealthy", "status": "unhealthy",
"message": f"Error checking Redis: {str(e)}" "message": "Error checking Redis"
} }
health_status["status"] = "unhealthy" health_status["status"] = "unhealthy"