fix: keep health errors non-sensitive
This commit is contained in:
parent
310e273aa5
commit
df40ddc286
9
main.py
9
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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user