debugging on health check view

This commit is contained in:
David Kennedy 2024-02-07 08:51:26 -05:00
parent 80ca25339d
commit f05f0c76a8
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -1,10 +1,13 @@
import logging
from django.http import HttpResponse
from login_required import login_not_required
logger = logging.getLogger(__name__)
# the health check endpoint needs to be globally available so that the
# PaaS orchestrator can make sure the app has come up properly
@login_not_required
def health(request):
logger.debug("in health check view")
return HttpResponse('<html lang="en"><head><title>OK - Get.gov</title></head><body>OK</body>')