From ae183f8c03bd99f98a54aa1d31537f2418095346 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Wed, 29 Nov 2023 12:26:44 +0100 Subject: [PATCH] :loud_sound: Ensure that we send tracebacks to Sentry on DigiD errors --- src/openforms/authentication/contrib/digid/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openforms/authentication/contrib/digid/views.py b/src/openforms/authentication/contrib/digid/views.py index 0d9baf3f4b..a8f5eacd52 100644 --- a/src/openforms/authentication/contrib/digid/views.py +++ b/src/openforms/authentication/contrib/digid/views.py @@ -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 ) @@ -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 )