Skip to content

Commit

Permalink
Merge pull request #161 from uktrade/feature/update
Browse files Browse the repository at this point in the history
remove:test_sentry endpoint from core views and URLs
  • Loading branch information
hareshkainthdbt authored Jan 14, 2025
2 parents 0698f0f + 6e3597c commit d7cd7be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions app/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@ def home(request: HttpRequest) -> HttpResponse:
return render(request, template_name="home.html", context=context)


@require_http_methods(["GET"])
def test_sentry(request):
import logging

logger = logging.getLogger(__name__)

logger.info("sentry: [INFO] find business regulations test message")
logger.error("sentry: [ERROR] find business regulations test message")
logger.warning("sentry: [WARNING] find business regulations test message")
logger.debug("sentry: [DEBUG] find business regulations test message")
return HttpResponse("Log message written", status=200)


@require_safe
def health_check(request: HttpRequest) -> HttpResponse:
"""Healthcheck endpoint.
Expand Down
1 change: 0 additions & 1 deletion fbr/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def read_cachetempdata(self, request, *args, **kwargs):
name="hide-cookie-banner",
),
# path("search/", orp_views.search, name="search"),
path("test-sentry/", core_views.test_sentry, name="test-sentry"),
]

if settings.DJANGO_ADMIN:
Expand Down

0 comments on commit d7cd7be

Please sign in to comment.