🔇(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:
committed by
aleb_the_flash
parent
2a7d963f50
commit
b7dfafaf47
@@ -122,7 +122,7 @@ class BrevoMarketingService:
|
|||||||
try:
|
try:
|
||||||
response = contact_api.create_contact(contact, **api_configurations)
|
response = contact_api.create_contact(contact, **api_configurations)
|
||||||
except (brevo_python.rest.ApiException, requests.exceptions.ReadTimeout) as err:
|
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
|
raise ContactCreationError("Failed to create contact in Brevo") from err
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|||||||
Reference in New Issue
Block a user