From bc02b53a7a6f5c8162800e26bd60cd1698d53305 Mon Sep 17 00:00:00 2001 From: Sachin Bisht Date: Mon, 1 Jul 2024 12:39:13 +0530 Subject: [PATCH] Error log for ignoring contact field --- api/services/user_attribute_service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/services/user_attribute_service.py b/api/services/user_attribute_service.py index 16b8058..9001bf8 100644 --- a/api/services/user_attribute_service.py +++ b/api/services/user_attribute_service.py @@ -19,6 +19,10 @@ def handle_contact_fields_data(self, contact_data: dict[str, Any]): ) for field_key, field_value in contact_fields_data.items(): if not re.match(r"^\w+$", field_key): + logger.error( + f"Found a contact variable {field_key} for {self.user_phone} " + "with special character which can't be processed." + ) continue value = field_value.get("value")