Skip to content

Commit

Permalink
Merge pull request #3643 from open-formulieren/chore/more-error-infor…
Browse files Browse the repository at this point in the history
…mation

🔊 Ensure that we send tracebacks to Sentry on DigiD errors
  • Loading branch information
sergei-maertens authored Nov 29, 2023
2 parents 507d7c7 + ae183f8 commit c5120fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openforms/authentication/contrib/digid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get(self, request):
DIGID_MESSAGE_PARAMETER, LOGIN_CANCELLED
)
else:
logger.error(exc)
logger.error(exc, exc_info=exc)
failure_url = self.get_failure_url(
DIGID_MESSAGE_PARAMETER, GENERIC_LOGIN_ERROR
)
Expand All @@ -80,7 +80,7 @@ def get(self, request):
try:
name_id = response.get_nameid()
except OneLogin_Saml2_ValidationError as exc:
logger.error(exc)
logger.error(exc, exc_info=exc)
failure_url = self.get_failure_url(
DIGID_MESSAGE_PARAMETER, GENERIC_LOGIN_ERROR
)
Expand Down

0 comments on commit c5120fc

Please sign in to comment.