Skip to content

Commit dd4a286

Browse files
committed
feat: print mongo uri when mongodb is down
1 parent 8bff8a8 commit dd4a286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/backend/apis/bwwc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def backup(req: HttpRequest) -> HttpResponse:
308308
def mongo_health(req: HttpRequest) -> HttpResponse:
309309
if req.method == "GET":
310310
if not engine.is_mongodb_running():
311-
return HttpResponseBadRequest("MongoDB is down")
311+
return HttpResponseBadRequest(f"MongoDB is down at: {engine.mongo_uri}")
312312
else:
313313
return HttpResponse("MongoDB is up")
314314
else:

0 commit comments

Comments
 (0)