From 87852297b37c3a385c1019a905d3c6dbb77010cf Mon Sep 17 00:00:00 2001 From: Tinus Van Langendonck Date: Wed, 17 Apr 2024 15:47:31 +0200 Subject: [PATCH] Debugging toegevoegd voor POST naar GA --- .../scouts_auth/groupadmin/services/group_admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scouts_kampvisum_api/scouts_auth/groupadmin/services/group_admin.py b/scouts_kampvisum_api/scouts_auth/groupadmin/services/group_admin.py index 5a3c20e2..9f362639 100644 --- a/scouts_kampvisum_api/scouts_auth/groupadmin/services/group_admin.py +++ b/scouts_kampvisum_api/scouts_auth/groupadmin/services/group_admin.py @@ -99,6 +99,7 @@ def post(self, endpoint: str, payload: dict, active_user: settings.AUTH_USER_MOD response = requests.post(endpoint, data=payload) response.raise_for_status() except requests.exceptions.HTTPError as error: + logger.warn(response.text) if error.response.status_code == 404: raise Http404( f"404 - Unable to post to endpoint {endpoint} with payload {payload}"