Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dashboard/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


# ---------------------------------------------------------------------------
Expand Down
Loading