Skip to content

Commit

Permalink
Log validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebrownlee committed Jul 24, 2024
1 parent 84f0358 commit 9d4310e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LearningAPI/views/student_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ def list(self, request):
if serializer.is_valid():
return Response(serializer.data, status=status.HTTP_200_OK)
else:
logger.debug("Serializer for students by cohort failed")
logger.debug(serializer.errors)
return Response(serializer.data, status=status.HTTP_200_OK)
# return Response({'message': serializer.error_messages}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)

Expand Down

0 comments on commit 9d4310e

Please sign in to comment.