[IMP] attachment_azure: downgrade ResourceExistsError log from ERROR to INFO

Using _logger.exception for a ResourceExistsError is misleading: the operation
is harmless since blobs are content-addressed (SHA1) and filename is returned
correctly regardless. Switch to _logger.info to avoid false-positive ERROR noise.
This commit is contained in:
Vincent Van Rossem
2026-03-31 15:31:19 +02:00
parent a10411107c
commit 542ee95c36
+2 -2
View File
@@ -177,8 +177,8 @@ class IrAttachment(models.Model):
try: try:
blob_client.upload_blob(file, blob_type="BlockBlob") blob_client.upload_blob(file, blob_type="BlockBlob")
except ResourceExistsError: except ResourceExistsError:
_logger.exception( _logger.info(
"Trying to re create an existing resource %s" % filename "Resource already exists, skipping upload for %s", filename
) )
except HttpResponseError as error: except HttpResponseError as error:
# log verbose error from azure, return short message for user # log verbose error from azure, return short message for user