Skip to content

Commit

Permalink
remove:test_sentry endpoint from core views and URLs
Browse files Browse the repository at this point in the history
The test_sentry endpoint and its associated URL were removed as it is no longer needed. This cleanup helps eliminate unused code, improving maintainability and reducing potential clutter in the project.
  • Loading branch information
hareshkainthdbt committed Jan 14, 2025
1 parent 68b6483 commit 6e3597c
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 6e3597c

Please sign in to comment.