From dd4a2869a614213af24c368b3e7408ed1c7cb314 Mon Sep 17 00:00:00 2001 From: asadeg02 Date: Wed, 9 Apr 2025 14:32:14 -0400 Subject: [PATCH] feat: print mongo uri when mongodb is down --- backend/backend/apis/bwwc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/backend/apis/bwwc.py b/backend/backend/apis/bwwc.py index 7c4fe3b..419e965 100644 --- a/backend/backend/apis/bwwc.py +++ b/backend/backend/apis/bwwc.py @@ -308,7 +308,7 @@ def backup(req: HttpRequest) -> HttpResponse: def mongo_health(req: HttpRequest) -> HttpResponse: if req.method == "GET": if not engine.is_mongodb_running(): - return HttpResponseBadRequest("MongoDB is down") + return HttpResponseBadRequest(f"MongoDB is down at: {engine.mongo_uri}") else: return HttpResponse("MongoDB is up") else: