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 )