Skip to content

Commit b7dfafa

Browse files
committed
🔇(backend) downgrade marketing exceptions from error to warning level
Replace logger.exception with logger.warning to reduce Sentry noise for unavoidable timeout errors that developers cannot act upon.
1 parent 2a7d963 commit b7dfafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/core/services/marketing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def create_contact(self, contact_data: ContactData, timeout=None) -> dict:
122122
try:
123123
response = contact_api.create_contact(contact, **api_configurations)
124124
except (brevo_python.rest.ApiException, requests.exceptions.ReadTimeout) as err:
125-
logger.exception("Failed to create contact in Brevo")
125+
logger.warning("Failed to create contact in Brevo", exc_info=True)
126126
raise ContactCreationError("Failed to create contact in Brevo") from err
127127

128128
return response

0 commit comments

Comments
 (0)