From 3291f7809b74fc69d06d4f20eb61a5456cff5bd1 Mon Sep 17 00:00:00 2001
From: Mart van Santen <mart@greenhost.nl>
Date: Fri, 1 Apr 2022 16:39:22 +0800
Subject: [PATCH] Add debugging

---
 areas/login/login.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/areas/login/login.py b/areas/login/login.py
index 979579a5..214898e9 100644
--- a/areas/login/login.py
+++ b/areas/login/login.py
@@ -238,11 +238,12 @@ def consent():
         app_id = consent_request.client.client_id
         # False positive: pylint: disable=no-member
         kratos_id = consent_request.subject
-    except Exception as e:
+    except Exception as error:
         current_app.logger.error(f"Error: Unable to extract information from consent request")
         current_app.logger.error(f"Error: {error}")
         current_app.logger.error(f"Client: {consent_request.client}")
         current_app.logger.error(f"Subject: {consent_request.subject}")
+        current_app.logger.error(f"Subject: {consent_request.client.client_id}")
         abort(501, description="Internal error occured")
 
     # Get the related user object
-- 
GitLab