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

---
 areas/login/login.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/areas/login/login.py b/areas/login/login.py
index 2dc9f4a6..23314a2c 100644
--- a/areas/login/login.py
+++ b/areas/login/login.py
@@ -245,6 +245,9 @@ def consent():
         app_id = consent_client.get('client_id')
         # False positive: pylint: disable=no-member
         kratos_id = consent_request.subject
+        current_app.logger.error(f"Info: Found kratos_id {kratos_id"})
+        current_app.logger.error(f"Info: Found app_id {app_id"})
+
     except Exception as error:
         current_app.logger.error(f"Error: Unable to extract information from consent request")
         current_app.logger.error(f"Error: {error}")
@@ -253,6 +256,7 @@ def consent():
         abort(501, description="Internal error occured")
 
     # Get the related user object
+    current_app.logger.error(f"Info: Getting user from admin {kratos_id}")
     user = KratosUser(KRATOS_ADMIN, kratos_id)
     if not user:
         current_app.logger.error(f"User not found in database: {kratos_id}")
-- 
GitLab