Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Perry authored and Ross Perry committed Nov 6, 2024
1 parent 80bff0b commit 0bdd6d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions seed/views/v3/goals.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,14 @@ def data(self, request, pk):
return JsonResponse({"status": "error", "message": f"Error filtering: {e!s}"}, status=status.HTTP_400_BAD_REQUEST)

try:
import logging
logging.error(">>> v1a %s", views1.count())
logging.error(">>> v1a %s", views1)
logging.error(">>> filters %s", filters)
logging.error(">>> annotations %s", annotations)
logging.error(">>> order_by %s", order_by)
views1 = views1.annotate(**annotations).filter(filters).order_by(*order_by)
logging.error(">>> v1b %s", views1.count())
except ValueError as e:
return JsonResponse({"status": "error", "message": f"Error filtering: {e!s}"}, status=status.HTTP_400_BAD_REQUEST)

Expand Down

0 comments on commit 0bdd6d9

Please sign in to comment.