From df40ddc2860548c9d296769dea324e1f06190b5a Mon Sep 17 00:00:00 2001 From: kcar Date: Thu, 28 May 2026 11:43:59 +0100 Subject: [PATCH] fix: keep health errors non-sensitive --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7dd9e35..a877544 100644 --- a/main.py +++ b/main.py @@ -90,9 +90,10 @@ async def health_check() -> Dict[str, Any]: } health_status["status"] = "unhealthy" except Exception as e: + logger.warning(f"Neo4j health check failed: {e}") health_status["services"]["neo4j"] = { "status": "unhealthy", - "message": f"Error checking Neo4j: {str(e)}" + "message": "Error checking Neo4j" } health_status["status"] = "unhealthy" @@ -112,9 +113,10 @@ async def health_check() -> Dict[str, Any]: } health_status["status"] = "unhealthy" except Exception as e: + logger.warning(f"Supabase health check failed: {e}") health_status["services"]["supabase"] = { "status": "unhealthy", - "message": f"Error checking Supabase Auth API: {str(e)}" + "message": "Error checking Supabase Auth API" } health_status["status"] = "unhealthy" @@ -141,9 +143,10 @@ async def health_check() -> Dict[str, Any]: health_status["status"] = "unhealthy" except Exception as e: + logger.warning(f"Redis health check failed: {e}") health_status["services"]["redis"] = { "status": "unhealthy", - "message": f"Error checking Redis: {str(e)}" + "message": "Error checking Redis" } health_status["status"] = "unhealthy"