diff --git a/dashboard/backend/app.py b/dashboard/backend/app.py index 2665e52..9813594 100644 --- a/dashboard/backend/app.py +++ b/dashboard/backend/app.py @@ -126,9 +126,9 @@ def health(): with db_session() as db: db.execute(__import__("sqlalchemy").text("SELECT 1")) return jsonify({"status": "ok", "db": "ok"}) - except Exception as e: - logger.error("Health check failed: %s", e) - return jsonify({"status": "degraded", "db": "error", "detail": str(e)}), 503 + except Exception: + logger.exception("Health check failed") + return jsonify({"status": "degraded", "db": "error", "detail": "Database check failed"}), 503 # ---------------------------------------------------------------------------