Skip to content

Commit

Permalink
Merge pull request #701 from openedx/pwnage101/log-assign-request-data
Browse files Browse the repository at this point in the history
feat: log request data on license assignment 400
  • Loading branch information
pwnage101 authored Aug 27, 2024
2 parents 5e5476c + 8f744ea commit b9e5b81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion license_manager/apps/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,11 @@ def _validate_data(self, data):
"""
serializer_class = self.get_serializer_class()
serializer = serializer_class(data=data)
serializer.is_valid(raise_exception=True)
try:
serializer.is_valid(raise_exception=True)
except ValidationError:
logger.error("Received invalid input: %s", data)
raise

def _trim_already_associated_emails(self, subscription_plan, user_emails):
"""
Expand Down

0 comments on commit b9e5b81

Please sign in to comment.