Improve logging
This commit is contained in:
parent
5055603927
commit
2d4db98b6b
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ class Attachment(models.Model):
|
|||
res = response.json()
|
||||
if len(res) == 0 or not isinstance(res, list):
|
||||
logger.error("Shortpixel response is not a non-empty list: %s", res)
|
||||
logger.info("POST data: %s", data)
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
res_data = res[0]
|
||||
|
|
Reference in a new issue