🔇(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.
This commit is contained in:
lebaudantoine
2025-05-27 15:12:54 +02:00
committed by aleb_the_flash
parent 2a7d963f50
commit b7dfafaf47

View File

@@ -122,7 +122,7 @@ class BrevoMarketingService:
try:
response = contact_api.create_contact(contact, **api_configurations)
except (brevo_python.rest.ApiException, requests.exceptions.ReadTimeout) as err:
logger.exception("Failed to create contact in Brevo")
logger.warning("Failed to create contact in Brevo", exc_info=True)
raise ContactCreationError("Failed to create contact in Brevo") from err
return response