From 2d4db98b6b2d09ed5b6f6d1a8f4f6e7934e17cea Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 24 Mar 2023 11:15:47 +0100 Subject: [PATCH] Improve logging --- src/attachments/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/attachments/models.py b/src/attachments/models.py index 7021199..fff1e68 100644 --- a/src/attachments/models.py +++ b/src/attachments/models.py @@ -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]