Skip to content

Commit

Permalink
adding logs to erros
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Barbosa committed Jan 9, 2025
1 parent 897ba5d commit 8bb17e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion connect/api/v2/commerce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ def get(self, request):
else:
try:
user = User.objects.get(email=data.get("user_email"))
except Exception:
except Exception as e:
print("error: {e}")
user_dto = KeycloakUserDTO(
email=data.get("user_email"),
company_name=project.organization.name,
)
print(f"user dto: {user_dto.__dict}")
create_keycloak_user_use_case = CreateKeycloakUserUseCase(user_dto)
user_info = create_keycloak_user_use_case.execute()
user = user_info.get("user")
Expand Down

0 comments on commit 8bb17e1

Please sign in to comment.