mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Add logging when deleting file on the object storage
This commit is contained in:
@@ -156,6 +156,9 @@ class IrAttachment(models.Model):
|
||||
if not count and filekey:
|
||||
try:
|
||||
filekey.delete()
|
||||
_logger.info(
|
||||
'file %s deleted on the object storage' % (fname,)
|
||||
)
|
||||
except S3ResponseError:
|
||||
# log verbose error from s3, return short message for user
|
||||
_logger.exception(
|
||||
|
||||
Reference in New Issue
Block a user