diff --git a/src/open_inwoner/accounts/views/profile.py b/src/open_inwoner/accounts/views/profile.py index cb8f583d79..e6500ba150 100644 --- a/src/open_inwoner/accounts/views/profile.py +++ b/src/open_inwoner/accounts/views/profile.py @@ -332,6 +332,9 @@ def form_valid(self, form): # Display errors raised by Laposta API if form.errors: + self.log_user_action( + self.request.user, _("failed to modify user newsletter subscription") + ) return self.form_invalid(form) messages.success(self.request, _("Uw wijzigingen zijn opgeslagen")) diff --git a/src/open_inwoner/laposta/client.py b/src/open_inwoner/laposta/client.py index b2570016b2..0576434eda 100644 --- a/src/open_inwoner/laposta/client.py +++ b/src/open_inwoner/laposta/client.py @@ -63,6 +63,7 @@ def remove_subscription(self, list_id: str, member_id: str) -> Member | None: # Handle scenario where a subscription does not exists in the API, # but it does exist locally if error.get("code") == 203 and error.get("parameter") == "member_id": + logger.info("Subscription does not exist for user") return None data = get_json_response(response)